Cargo Features

[dependencies]
db-testkit = { version = "0.2.0", default-features = false, features = ["postgres", "mysql", "sqlx-postgres", "sqlx-mysql", "sqlx-sqlite"] }
default = postgres

The postgres feature is set by default whenever db-testkit is added without default-features = false somewhere in the dependency tree.

postgres default = tokio-postgres

Affects backends::postgres, env::get_postgres_url

mysql = mysql_async

Affects backends::mysql, env::get_mysql_url

sqlx-postgres

Enables postgres of sqlx

Affects backends::sqlx, env::get_sqlx_postgres_url

sqlx-mysql

Enables mysql of sqlx

sqlx-sqlite

Enables sqlite of sqlx

Affects backends::sqlite, env::get_sqlx_sqlite_url

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tokio-postgres postgres
mysql_async mysql?

Enables mysql_async ^0.34.2

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