Expand description
Database creation, backing doido db create.
SeaORM has no “create database” primitive, so this implements the common per-backend approach:
- SQLite — ensure the parent directory exists and open the file with
mode=rwc, which creates it. - PostgreSQL / MySQL — connect to the server without selecting the
target database, then issue
CREATE DATABASE.
Functions§
- create_
database - Creates the database named in
url.