switchy_database_connection 0.3.0

Switchy database connection package
[dependencies.aws-config]
optional = true
version = "1.8.16"

[dependencies.aws-sdk-ssm]
optional = true
version = "1.109.0"

[dependencies.deadpool-postgres]
optional = true
version = "0.14.1"

[dependencies.duckdb]
default-features = false
optional = true
version = "1.10502.0"

[dependencies.log]
features = ["release_max_level_trace"]
version = "0.4.29"

[dependencies.native-tls]
optional = true
version = "0.2.18"

[dependencies.openssl]
features = ["v110"]
optional = true
version = "0.10.80"

[dependencies.postgres-native-tls]
optional = true
version = "0.5.3"

[dependencies.postgres-openssl]
optional = true
version = "0.5.3"

[dependencies.rusqlite]
features = ["bundled"]
optional = true
version = "=0.32.1"

[dependencies.sqlx]
default-features = false
features = ["runtime-tokio"]
optional = true
version = "0.8.6"

[dependencies.switchy_async]
default-features = false
optional = true
version = "0.3.0"

[dependencies.switchy_database]
default-features = false
version = "0.3.0"

[dependencies.switchy_env]
default-features = false
features = ["std"]
version = "0.3.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio-postgres]
features = []
optional = true
version = "0.7.17"

[features]
creds = [
    "dep:aws-config",
    "dep:aws-sdk-ssm",
]
database-connection-turso = ["turso"]
default = [
    "duckdb",
    "mysql-sqlx",
    "postgres-sqlx",
    "simulator",
    "sqlite-rusqlite",
    "sqlite-sqlx",
]
duckdb = [
    "dep:duckdb",
    "dep:switchy_async",
    "switchy_database/duckdb",
]
duckdb-bundled = [
    "duckdb",
    "duckdb/bundled",
    "switchy_database/duckdb-bundled",
]
fail-on-warnings = [
    "switchy_async?/fail-on-warnings",
    "switchy_database/fail-on-warnings",
    "switchy_env/fail-on-warnings",
]
mysql = [
    "dep:switchy_async",
    "switchy_database/mysql",
]
mysql-sqlx = [
    "mysql",
    "sqlx",
    "sqlx/mysql",
    "switchy_database/mysql-sqlx",
]
postgres = [
    "dep:switchy_async",
    "switchy_database/postgres",
]
postgres-native-tls = [
    "dep:native-tls",
    "dep:postgres-native-tls",
]
postgres-openssl = [
    "dep:openssl",
    "dep:postgres-openssl",
]
postgres-raw = [
    "dep:deadpool-postgres",
    "dep:tokio-postgres",
    "postgres",
    "switchy_database/postgres-raw",
]
postgres-sqlx = [
    "postgres",
    "sqlx",
    "sqlx/postgres",
    "sqlx/tls-rustls",
    "switchy_database/postgres-sqlx",
]
simulator = [
    "switchy_async?/simulator",
    "switchy_database/simulator",
    "switchy_env/simulator",
]
sqlite = [
    "dep:switchy_async",
    "switchy_database/sqlite",
]
sqlite-rusqlite = [
    "dep:rusqlite",
    "sqlite",
    "switchy_database/sqlite-rusqlite",
]
sqlite-sqlx = [
    "sqlite",
    "sqlx",
    "sqlx/sqlite",
    "switchy_database/sqlite-sqlx",
]
sqlx = [
    "dep:sqlx",
    "switchy_database/sqlx",
]
tls = [
    "sqlx/tls-rustls",
    "switchy_database/tls",
]
turso = [
    "sqlite",
    "switchy_database/turso",
]

[package]
authors = ["Braden Steffaniak"]
categories = ["database"]
description = "Switchy database connection package"
edition = "2024"
keywords = [
    "database",
    "mysql",
    "postgres",
    "sqlite",
]
license = "MPL-2.0"
name = "switchy_database_connection"
readme = "README.md"
repository = "https://github.com/MoosicBox/MoosicBox"
version = "0.3.0"

[package.metadata]
examples = true

[package.metadata.workspaces]
group = "switchy"