forked from coracle/caravel
374 B
374 B
pub async fn create_pool() -> Result<SqlitePool>
Creates and returns a sqlite connection pool.
Notes:
- Database table names are singular:
activity,tenant,relay
Steps:
- Reads
DATABASE_URLfrom environment - Ensures that any directories referred to in
DATABASE_URLexist - Initializes the sqlx pool
- Runs migrations found in the
migrationsdirectory