feat: add sqlx

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2023-10-02 22:27:22 +02:00
parent 7777dcaa44
commit 3648dce8e8
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912
3 changed files with 770 additions and 24 deletions

786
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,9 @@
members = ["crates/*", "examples/*"] members = ["crates/*", "examples/*"]
resolver = "2" resolver = "2"
[profile.dev.package.sqlx-macros]
opt-level = 3
[workspace.dependencies] [workspace.dependencies]
crunch = { path = "crates/crunch" } crunch = { path = "crates/crunch" }
crunch-traits = { path = "crates/crunch-traits" } crunch-traits = { path = "crates/crunch-traits" }
@ -34,5 +37,6 @@ genco = {version = "0.17.6"}
walkdir = {version = "2.4.0"} walkdir = {version = "2.4.0"}
regex = {version = "1.9.5"} regex = {version = "1.9.5"}
inquire = {version = "0.6.2"} inquire = {version = "0.6.2"}
sqlx = {version = "0.7.2", default-features = false, features = ["migrate", "macros", "postgres", "runtime-tokio", "tls-rustls", "chrono" ]}
pretty_assertions = "1.4.0" pretty_assertions = "1.4.0"

View File

@ -3,7 +3,6 @@ name = "crunch-postgres"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
crunch-traits.workspace = true crunch-traits.workspace = true
@ -16,4 +15,5 @@ thiserror.workspace = true
async-trait.workspace = true async-trait.workspace = true
futures.workspace = true futures.workspace = true
uuid.workspace = true uuid.workspace = true
sqlx.workspace = true
tokio-stream = {workspace = true, features = ["sync"]} tokio-stream = {workspace = true, features = ["sync"]}