You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes once you have create a server you also want to connect to the database powering it.
Ideally, there would be an method on Server that would provide details of how to access the database powering the site.
The specific use-case I have in mind is when an integration test has started a test server, and wants access to the database in order to manipulate the database content of fixtures.
Perhaps this can return a SilverStripe Database object, rather than inventing a new scheme for this.
Sometimes once you have create a server you also want to connect to the database powering it.
Ideally, there would be an method on Server that would provide details of how to access the database powering the site.
The specific use-case I have in mind is when an integration test has started a test server, and wants access to the database in order to manipulate the database content of fixtures.
Perhaps this can return a SilverStripe
Database
object, rather than inventing a new scheme for this.In the case of companion project such as https://github.com/sminnee/docker-serve/, this
getDatabase()
method could be overridden to provide details of how to access the container's database.The text was updated successfully, but these errors were encountered: