Introduce Database handling through SeaORM

This commit is contained in:
Quentin Boyer 2023-05-20 11:39:34 +02:00
parent 37331cd24d
commit e4765a20ef
12 changed files with 169 additions and 2 deletions

View file

@ -5,7 +5,7 @@ authors = ["traxys <quentin@familleboyer.net>"]
edition = "2021"
[workspace]
members = [".", "api", "app"]
members = [".", "api", "app", "migration"]
[dependencies]
anyhow = "1.0.71"
@ -18,5 +18,11 @@ tokio = { version = "1", features = ["macros", "rt", "rt-multi-thread"] }
tracing = "0.1.37"
tracing-subscriber = "0.3.17"
api = { path = "./api" }
migration = { path = "./migration" }
thiserror = "1.0.40"
tower-http = { version = "0.4.0", features = ["cors", "fs"] }
sha2 = "0.10"
[dependencies.sea-orm]
version = "0.11"
features = ["runtime-tokio-rustls", "sqlx-postgres", "sqlx-sqlite"]