Cargo Features

[dependencies]
moosicbox_database_connection = { version = "0.1.0", default-features = false, features = ["fail-on-warnings", "tls", "creds", "sqlx", "mysql", "mysql-sqlx", "postgres", "postgres-native-tls", "postgres-openssl", "postgres-raw", "postgres-sqlx", "sqlite", "sqlite-rusqlite", "sqlite-sqlx"] }
default = mysql-sqlx, postgres-sqlx, sqlite-sqlx

These default features are set whenever moosicbox_database_connection is added without default-features = false somewhere in the dependency tree.

fail-on-warnings
tls

Enables tls of moosicbox_database and tls-rustls of sqlx

sqlx dependencies

creds mysql? postgres?

Enables aws-config and aws-sdk-ssm

aws-config:

Creds dependencies

Affects moosicbox_database_connection::creds

sqlx mysql-sqlx postgres-sqlx sqlite-sqlx tls?

Enables sqlx, sqlx of moosicbox_database

Affects moosicbox_database_connection::InitSqliteSqlxDatabaseError

mysql mysql-sqlx = creds

Enables tokio

mysql-sqlx default = mysql, sqlx

Enables mysql-sqlx of moosicbox_database, mysql of sqlx

postgres postgres-raw? postgres-sqlx = creds

Enables tokio, postgres of moosicbox_database

Affects moosicbox_database_connection::InitPostgresError, moosicbox_database_connection::InitDatabaseError

postgres-native-tls

Enables native-tls and postgres-native-tls

native-tls:

Postgres dependencies

Affects moosicbox_database_connection::init_postgres_raw_native_tls

postgres-openssl

Enables openssl and postgres-openssl

Affects moosicbox_database_connection::init_postgres_raw_openssl

postgres-raw = postgres

Enables postgres-raw of moosicbox_database and tokio-postgres

tokio-postgres dependencies

Affects moosicbox_database_connection::init_postgres_raw_no_tls, moosicbox_database_connection::init_postgres_raw_native_tls, moosicbox_database_connection::init_postgres_raw_openssl

postgres-sqlx default = postgres, sqlx

Enables postgres-sqlx of moosicbox_database, postgres and tls-rustls of sqlx

Affects moosicbox_database_connection::init_postgres_sqlx

sqlite sqlite-rusqlite? sqlite-sqlx

Enables tokio

sqlite-rusqlite = sqlite

Enables sqlite-rusqlite of moosicbox_database and rusqlite

DB Dependencies

Affects moosicbox_database_connection::InitSqliteError, moosicbox_database_connection::init_sqlite

sqlite-sqlx default = sqlite, sqlx

Enables sqlite-sqlx of moosicbox_database, sqlite of sqlx

Affects moosicbox_database_connection::init_sqlite_sqlx, moosicbox_database_connection::InitSqliteSqlxDatabaseError