[package] authors = ["Braden Steffaniak"] categories = ["database"] description = "MoosicBox database connection package" edition = "2021" keywords = ["database", "mysql", "postgres", "sqlite"] license = "MPL-2.0" name = "moosicbox_database_connection" readme = "README.md" repository = "https://github.com/MoosicBox/MoosicBox" version = "0.1.0" [dependencies] moosicbox_database = { version = "0.1.0", path = "../database", default-features = false } # DB Dependencies rusqlite = { workspace = true, optional = true } # sqlx dependencies sqlx = { workspace = true, optional = true, features = ["runtime-tokio"] } # tokio-postgres dependencies tokio-postgres = { workspace = true, optional = true, features = [] } # Postgres dependencies native-tls = { workspace = true, optional = true } openssl = { workspace = true, optional = true } postgres-native-tls = { workspace = true, optional = true } postgres-openssl = { workspace = true, optional = true } # Creds dependencies aws-config = { workspace = true, optional = true } aws-sdk-ssm = { workspace = true, optional = true } log = { workspace = true } thiserror = { workspace = true } tokio = { workspace = true, optional = true, features = ["sync"] } [features] default = ["mysql-sqlx", "postgres-sqlx", "sqlite-sqlx"] fail-on-warnings = [] tls = ["moosicbox_database/tls", "sqlx/tls-rustls"] creds = ["dep:aws-config", "dep:aws-sdk-ssm"] sqlx = ["dep:sqlx", "moosicbox_database/sqlx"] mysql = ["creds", "dep:tokio"] mysql-sqlx = ["moosicbox_database/mysql-sqlx", "mysql", "sqlx", "sqlx/mysql"] postgres = ["creds", "dep:tokio", "moosicbox_database/postgres"] postgres-native-tls = ["dep:native-tls", "dep:postgres-native-tls"] postgres-openssl = ["dep:openssl", "dep:postgres-openssl"] postgres-raw = [ "dep:tokio-postgres", "moosicbox_database/postgres-raw", "postgres", ] postgres-sqlx = [ "moosicbox_database/postgres-sqlx", "postgres", "sqlx", "sqlx/postgres", "sqlx/tls-rustls", ] sqlite = ["dep:tokio"] sqlite-rusqlite = [ "dep:rusqlite", "moosicbox_database/sqlite-rusqlite", "sqlite", ] sqlite-sqlx = [ "moosicbox_database/sqlite-sqlx", "sqlite", "sqlx", "sqlx/sqlite", ]