Skip to main content

init

Function init 

Source
pub async fn init(config: &Config) -> Result<Pool>
Expand description

Open the per-DID SQLite cache described by Config (its db_path), run schema creation, and return the pool.

This is the entrypoint main calls: it derives the sqlx SQLite URL from the configured filesystem path and delegates to init_url. Kept separate from init_url so tests can open an in-memory database directly.