diff options
author | fx <[email protected]> | 2023-10-21 21:47:16 +0200 |
---|---|---|
committer | fx <[email protected]> | 2023-10-21 21:47:16 +0200 |
commit | 42c082085cfd7238c7ab87e5bd06b9e52a698a71 (patch) | |
tree | 43c4f4a3fed1421f94765cf5f2a53af26a25c50d /src/db.rs | |
parent | e8a8b2d33eec5da6701b04181b14de755e8b8063 (diff) | |
download | webol-42c082085cfd7238c7ab87e5bd06b9e52a698a71.tar webol-42c082085cfd7238c7ab87e5bd06b9e52a698a71.tar.gz webol-42c082085cfd7238c7ab87e5bd06b9e52a698a71.zip |
fixed move of init_db_pool
Diffstat (limited to 'src/db.rs')
-rw-r--r-- | src/db.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,9 +1,13 @@ | |||
1 | #[cfg(debug_assertions)] | ||
1 | use std::env; | 2 | use std::env; |
2 | 3 | ||
3 | use serde::Serialize; | 4 | use serde::Serialize; |
4 | use sqlx::{PgPool, postgres::PgPoolOptions}; | 5 | use sqlx::{PgPool, postgres::PgPoolOptions}; |
5 | use tracing::{debug, info}; | 6 | use tracing::{debug, info}; |
6 | 7 | ||
8 | #[cfg(not(debug_assertions))] | ||
9 | use crate::config::SETTINGS; | ||
10 | |||
7 | #[derive(Serialize)] | 11 | #[derive(Serialize)] |
8 | pub struct Device { | 12 | pub struct Device { |
9 | pub id: String, | 13 | pub id: String, |