feat: init postgres implementation via sqlx

This commit is contained in:
realaravinth
2022-05-08 20:02:17 +05:30
parent 02abffd63a
commit dba1f662a7
16 changed files with 308 additions and 4 deletions

View File

@@ -13,14 +13,15 @@ build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
exclude = ["db/db-migrations"]
memebers = [".", "db/db-core", "db/db-sqlx-postgres"]
[[bin]]
name = "mcaptcha"
path = "./src/main.rs"
[[bin]]
name = "tests-migrate"
path = "./src/tests-migrate.rs"
[dependencies]
actix-web = "4.0.1"
actix = "0.13"
@@ -76,6 +77,13 @@ lettre = { version = "0.10.0-rc.3", features = [
openssl = { version = "0.10.29", features = ["vendored"] }
[dependencies.db-core]
path = "./db/db-core"
[dependencies.db-sqlx-postgres]
path = "./db/db-sqlx-postgres"
[dependencies.my-codegen]
git = "https://github.com/realaravinth/actix-web"
package = "actix-web-codegen"