Cargo Features
[dependencies]
switchy_database_connection = { version = "0.3.0", default-features = false, features = ["creds", "database-connection-turso", "duckdb", "duckdb-bundled", "fail-on-warnings", "mysql", "mysql-sqlx", "postgres", "postgres-native-tls", "postgres-openssl", "postgres-raw", "postgres-sqlx", "simulator", "sqlite", "sqlite-rusqlite", "sqlite-sqlx", "sqlx", "tls", "turso"] }
- default = duckdb, mysql-sqlx, postgres-sqlx, simulator, sqlite-rusqlite, sqlite-sqlx
-
These default features are set whenever
switchy_database_connectionis added withoutsomewhere in the dependency tree.default-features = false - creds
-
Enables aws-config and aws-sdk-ssm
Affects
switchy_database_connection::creds… - database-connection-turso = turso
- duckdb default duckdb-bundled?
-
Enables duckdb and switchy_async, duckdb of switchy_database
Affects
switchy_database_connection::InitDuckDbError,switchy_database_connection::init_duckdb,switchy_database_connection::init_duckdb_with_options,switchy_database_connection::init_duckdb_read_only,switchy_database_connection::init_duckdb_read_only_with_options… - duckdb-bundled = duckdb
-
Enables bundled of duckdb, duckdb-bundled of switchy_database
- fail-on-warnings
-
Enables fail-on-warnings of optional switchy_async, switchy_database, and switchy_env
- mysql mysql-sqlx
-
Enables switchy_async, mysql of switchy_database
- mysql-sqlx default = mysql, sqlx
-
Enables mysql of sqlx ^0.8.6, mysql-sqlx of switchy_database
Affects
switchy_database_connection::InitMySqlSqlxError,switchy_database_connection::init_mysql_sqlx… - postgres postgres-raw? postgres-sqlx
-
Enables switchy_async, postgres of switchy_database
Affects
switchy_database_connection::InitPostgresError,switchy_database_connection::InitDatabaseError… - postgres-native-tls
-
Enables native-tls and postgres-native-tls
Affects
switchy_database_connection::init_postgres_raw_native_tls… - postgres-openssl
-
Enables openssl and postgres-openssl
Affects
switchy_database_connection::init_postgres_raw_openssl… - postgres-raw = postgres
-
Enables deadpool-postgres, tokio-postgres, postgres-raw of switchy_database
Affects
switchy_database_connection::init_postgres_raw_no_tls,switchy_database_connection::init_postgres_raw_native_tls,switchy_database_connection::init_postgres_raw_openssl… - postgres-sqlx default = postgres, sqlx
-
Enables postgres and tls-rustls of sqlx ^0.8.6, postgres-sqlx of switchy_database
Affects
switchy_database_connection::init_postgres_sqlx… - simulator default
-
Enables simulator of optional switchy_async, switchy_database, and switchy_env
- sqlite sqlite-rusqlite sqlite-sqlx turso?
-
Enables switchy_async, sqlite of switchy_database
- sqlite-rusqlite default = sqlite
-
Enables rusqlite =0.32.1, sqlite-rusqlite of switchy_database
Affects
switchy_database_connection::InitSqliteRusqliteError,switchy_database_connection::init_sqlite_rusqlite… - sqlite-sqlx default = sqlite, sqlx
-
Enables sqlite of sqlx ^0.8.6, sqlite-sqlx of switchy_database
Affects
switchy_database_connection::init_sqlite_sqlx,switchy_database_connection::InitSqliteSqlxDatabaseError… - sqlx mysql-sqlx postgres-sqlx sqlite-sqlx tls?
-
Enables sqlx ^0.8.6, sqlx of switchy_database
Affects
switchy_database_connection::InitSqliteSqlxDatabaseError… - tls
-
Enables tls of switchy_database and tls-rustls of sqlx ^0.8.6
sqlx:
For backwards compatibility
- turso database-connection-turso? = sqlite
-
Enables turso of switchy_database
Affects
switchy_database_connection::InitTursoError,switchy_database_connection::init_turso_local…