start diesel setup
This commit is contained in:
18
src/lib.rs
18
src/lib.rs
@ -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") );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user