v0.12.0-preety_code

This commit is contained in:
Mateusz Gruszczyński
2026-09-03 15:33:37 +02:00
parent be67932b47
commit 07be4b85d9
87 changed files with 11691 additions and 3172 deletions
+10 -5
View File
@@ -1,12 +1,18 @@
use std::{path::Path, sync::{Arc, Mutex}};
use crate::{
models::{
ApiTokenInfo, Automation, ClimateGroup, ConfigurationExport, Device, EventLog, Flow,
HaReading, Reading, RuntimeSettings, Schedule, Zone, ZoneReading,
},
queries,
};
use anyhow::{Context, Result};
use chrono::{DateTime, Duration, Utc};
use rusqlite::{params, Connection, OptionalExtension};
use serde::{de::DeserializeOwned, Serialize};
use serde_json::Value;
use crate::{
models::{ApiTokenInfo, Automation, ClimateGroup, ConfigurationExport, Device, EventLog, Flow, HaReading, Reading, RuntimeSettings, Schedule, Zone, ZoneReading},
queries,
use std::{
path::Path,
sync::{Arc, Mutex},
};
#[derive(Clone)]
@@ -14,7 +20,6 @@ pub struct Db {
conn: Arc<Mutex<Connection>>,
}
// Functional source split intentionally keeps items in the existing module namespace.
include!("db/core_devices.rs");
include!("db/climate.rs");