start diesel setup

This commit is contained in:
2026-05-29 18:00:58 +02:00
parent 0cab69da71
commit 6e7285507d
20 changed files with 1140 additions and 107 deletions

View File

@ -1,6 +1,20 @@
use bollard::Docker;
use std::env;
use std::sync::LazyLock;
pub static mut DOCKER: LazyLock<Docker> = LazyLock::new(|| Docker::connect_with_local_defaults().expect("Failed to connect to the docker socket") );
pub static mut DB_CONN: LazyLock<
use diesel::PgConnection;
use diesel::r2d2::{
Pool,
ConnectionManager
};
pub mod schema;
pub static mut DOCKER: LazyLock<Docker> = LazyLock::new(|| Docker::connect_with_local_defaults().expect("Failed to connect to the docker socket") );