pub async fn default_sqlite_pool(connection_string: &str) -> Pool<Sqlite>Expand description
A convenience method for building a simple connection pool for SQLite. A connection pool is needed for both the event and view repositories.
use sqlx::{Pool, Sqlite};
use sqlite_es::default_sqlite_pool;
let connection_string = "sqlite://db/test.db";
let pool: Pool<Sqlite> = default_sqlite_pool(connection_string).await;