Add `Database` wrapper for creating databases
dshoreman opened this issue · comments
Dave Shoreman commented
In order to create databases we'll need to use Doctrine's DBAL iirc, or at the very least Laravel's Schema stuff but I don't think that supported database creation.
It's feasible that we may end up linking databases to users and adding audit logs of the creation in future, so it should be its own class. Something like (new Servidor\Database())->create($name);
which would be called from the Database API controller as well as from Sites during creation.
Dave Shoreman commented
Wrapper class for this is added in #167, now we just need to add the actual creation parts.