diff options
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, |