Mercurial > lbo > hg > analyrics
view src/db.rs @ 80:d3368a7142ef default tip
Make analyrics build again and add Cargo.lock
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Sat, 27 Apr 2024 20:34:05 +0200 |
parents | fd0237049be0 |
children |
line wrap: on
line source
#[cfg(feature = "sqlite")] use rocket_db_pools::sqlx::{Sqlite, SqlitePool}; #[cfg(feature = "sqlite")] pub type DBType = Sqlite; #[cfg(feature = "sqlite")] pub type PoolType = SqlitePool; // Current SQL queries don't work with postgres. #[cfg(feature = "postgres")] use rocket_db_pools::sqlx::{PgPool, Postgres}; #[cfg(feature = "postgres")] pub type DBType = Postgres; #[cfg(feature = "postgres")] pub type PoolType = PgPool;