push-cargo-lock #61

Merged
mixel merged 2 commits from push-cargo-lock into main 2025-04-09 10:00:01 +02:00
4 changed files with 4326 additions and 1 deletions

2
.gitignore vendored
View file

@ -6,7 +6,7 @@ target/
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock
# Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk

4314
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -16,4 +16,8 @@ impl Database {
conn: sea_orm::Database::connect(options).await?,
})
}
pub fn connection(&self) -> &DatabaseConnection {
&self.conn
}
}

View file

@ -9,6 +9,9 @@ mod error;
pub use db::Database;
pub use db::entity;
use log::info;
use migration::Migrator;
use migration::MigratorTrait;
#[derive(Clone)]
struct AppConfig {
@ -24,6 +27,10 @@ async fn main() -> std::io::Result<()> {
let database = Database::new(database_url.into()).await.unwrap();
info!("Running migrations");
Migrator::up(database.connection(), None).await.unwrap();
info!("Migrations completed");
let redis_conn = connect_to_redis_database().await;
let app_config = AppConfig { ldap_auth: false };