[package]
edition = "2024"
rust-version = "1.94"
name = "persistant-sqlx"
version = "0.8.21"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PersistAnt's relational driver over sqlx: implements RelationalBackend for PostgreSQL, with typed error classification."
readme = false
keywords = [
"sql",
"postgres",
"sqlx",
"persistence",
]
categories = ["database"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ciresnave/PersistAnt"
[features]
mysql = ["sqlx/mysql"]
sqlite = ["sqlx/sqlite"]
[lib]
name = "persistant_sqlx"
path = "src/lib.rs"
[[example]]
name = "machine_vm"
path = "examples/machine_vm.rs"
required-features = [
"sqlite",
"mysql",
]
[[example]]
name = "matrix"
path = "examples/matrix.rs"
[[example]]
name = "matrix_mysql"
path = "examples/matrix_mysql.rs"
required-features = ["mysql"]
[[example]]
name = "matrix_sqlite"
path = "examples/matrix_sqlite.rs"
required-features = ["sqlite"]
[[example]]
name = "rel_speed"
path = "examples/rel_speed.rs"
required-features = ["sqlite"]
[[example]]
name = "speed"
path = "examples/speed.rs"
required-features = ["sqlite"]
[[test]]
name = "bounded"
path = "tests/bounded.rs"
[[test]]
name = "bounded_sqlite"
path = "tests/bounded_sqlite.rs"
[[test]]
name = "checked_in_matrix"
path = "tests/checked_in_matrix.rs"
[[test]]
name = "checked_in_matrix_mariadb"
path = "tests/checked_in_matrix_mariadb.rs"
[[test]]
name = "checked_in_matrix_mysql"
path = "tests/checked_in_matrix_mysql.rs"
[[test]]
name = "checked_in_matrix_sqlite"
path = "tests/checked_in_matrix_sqlite.rs"
[[test]]
name = "decode_types"
path = "tests/decode_types.rs"
[[test]]
name = "durability_mysql"
path = "tests/durability_mysql.rs"
harness = false
required-features = ["mysql"]
[[test]]
name = "durability_postgres"
path = "tests/durability_postgres.rs"
harness = false
[[test]]
name = "durability_sqlite"
path = "tests/durability_sqlite.rs"
harness = false
required-features = ["sqlite"]
[[test]]
name = "kv_on_mysql"
path = "tests/kv_on_mysql.rs"
[[test]]
name = "kv_on_postgres"
path = "tests/kv_on_postgres.rs"
[[test]]
name = "kv_on_sqlite"
path = "tests/kv_on_sqlite.rs"
[[test]]
name = "migrations"
path = "tests/migrations.rs"
[[test]]
name = "rel_speed_choose"
path = "tests/rel_speed_choose.rs"
[[test]]
name = "sql_macro"
path = "tests/sql_macro.rs"
[[test]]
name = "sweep"
path = "tests/sweep.rs"
[[test]]
name = "tls"
path = "tests/tls.rs"
[[test]]
name = "tls_mysql"
path = "tests/tls_mysql.rs"
required-features = ["mysql"]
[dependencies.persistant-core]
version = "0.8.21"
[dependencies.persistant-relational]
version = "0.8.21"
[dependencies.sqlx]
version = "0.9.0"
features = [
"runtime-tokio",
"tls-rustls-ring-webpki",
"postgres",
"migrate",
"time",
]
default-features = false
[dependencies.tokio]
version = "1.53.2"
features = [
"sync",
"time",
]
default-features = false
[dev-dependencies.persistant-kv]
version = "0.8.21"
[dev-dependencies.persistant-macros]
version = "0.8.21"
[dev-dependencies.persistant-relational]
version = "0.8.21"
features = ["sql"]
[dev-dependencies.sha2]
version = "0.10"
[dev-dependencies.tokio]
version = "1.53.2"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
]