aboutsummaryrefslogtreecommitdiff
path: root/src/db.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.rs')
-rw-r--r--src/db.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db.rs b/src/db.rs
index 295780e..3c51e2b 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -1,9 +1,13 @@
1#[cfg(debug_assertions)]
1use std::env; 2use std::env;
2 3
3use serde::Serialize; 4use serde::Serialize;
4use sqlx::{PgPool, postgres::PgPoolOptions}; 5use sqlx::{PgPool, postgres::PgPoolOptions};
5use tracing::{debug, info}; 6use tracing::{debug, info};
6 7
8#[cfg(not(debug_assertions))]
9use crate::config::SETTINGS;
10
7#[derive(Serialize)] 11#[derive(Serialize)]
8pub struct Device { 12pub struct Device {
9 pub id: String, 13 pub id: String,