Introduce Database handling through SeaORM
This commit is contained in:
parent
37331cd24d
commit
e4765a20ef
12 changed files with 169 additions and 2 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue