0d12f7dfeat: config from env and SQLite pool in app context1mo | 1 | use sqlx::SqlitePool; |
| 2 | use sqlx::sqlite::SqlitePoolOptions; |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | pub async fn connect(database_url: &str) -> Result<SqlitePool, sqlx::Error> { |
| 9 | SqlitePoolOptions::new().connect(database_url).await |
| 10 | } |