Skip to main content

Module create

Module create 

Source
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.