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

16
migration/Cargo.toml Normal file
View file

@ -0,0 +1,16 @@
[package]
name = "migration"
version = "0.1.0"
edition = "2021"
publish = false
[lib]
name = "migration"
path = "src/lib.rs"
[dependencies]
async-std = { version = "1", features = ["attributes", "tokio1"] }
[dependencies.sea-orm-migration]
version = "0.11.0"
features = ["runtime-tokio-rustls", "sqlx-postgres", "sqlx-sqlite"]