max / makenotwork
| 1 | //! Database access. Connection comes from `ops_core::sqlite`; migrations are |
| 2 | //! per-crate (the `sqlx::migrate!` path is compile-time, relative to here). |
| 3 | |
| 4 | use Result; |
| 5 | use SqlitePool; |
| 6 | use Path; |
| 7 | |
| 8 | pub use connect; |
| 9 | |
| 10 | pub async |
| 11 | let pool = connect.await?; |
| 12 | migrate!.run.await?; |
| 13 | Ok |
| 14 | |
| 15 |