db_type!() { /* proc-macro */ }Expand description
Expands to the database type from the SQL_FORGE_DB_TYPE environment variable,
falling back to [package.metadata.sql_forge] in Cargo.toml.
ⓘ
use sql_forge::db_type;
pub type AppDb = db_type!();
// expands to the type set via SQL_FORGE_DB_TYPE or Cargo.toml metadataPriority:
SQL_FORGE_DB_TYPEenv var (e.g.sqlx::MySql,sqlx::Postgres)[package.metadata.sql_forge] db = "..."inCargo.toml