Mercurial > lbo > hg > analyrics
view src/db.rs @ 77:fd0237049be0
Show paths instead of tags & apply rust fixes
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Mon, 31 Jul 2023 09:31:37 +0200 |
parents | 792eb8ac3d93 |
children | d3368a7142ef |
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;