Skip to main content

heldar_entry/
schema.rs

1//! The access-control app owns its own schema, applied idempotently against the shared kernel pool on startup
2//! (single-tenant-per-deployment). The open kernel does not define these domain tables.
3
4use sqlx::SqlitePool;
5
6/// Create the access-control tables if they do not exist. Called by the composing server after the
7/// kernel migrations have run.
8pub async fn init(pool: &SqlitePool) -> sqlx::Result<()> {
9    sqlx::raw_sql(include_str!("schema.sql"))
10        .execute(pool)
11        .await?;
12    Ok(())
13}