Cargo Features

[dependencies]
tiny_orm_core = { version = "0.4.6", default-features = false, features = ["postgres", "mysql", "sqlite", "any", "sqlx-dev"] }
default = mysql

The mysql feature is set by default whenever tiny_orm_core is added without default-features = false somewhere in the dependency tree.

postgres = sqlx-dev

Enables postgres of sqlx

Affects model::TinyOrmDbPool, model::TinyOrmSqlRow, model::TinyOrmSqlResult

mysql default = sqlx-dev

Enables mysql of sqlx

Affects model::TinyOrmDbPool, model::TinyOrmSqlRow, model::TinyOrmSqlResult

sqlite = sqlx-dev

Enables sqlite of sqlx

Affects model::TinyOrmDbPool, model::TinyOrmSqlRow, model::TinyOrmSqlResult

any = sqlx-dev

Enables any of sqlx

sqlx:

database

Affects model::TinyOrmDbPool, model::TinyOrmSqlRow, model::TinyOrmSqlResult

sqlx-dev any? mysql postgres? sqlite?

Enables json, macros, migrate, runtime-tokio, time and tls-rustls of sqlx

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.

sqlx any? mysql postgres? sqlite? sqlx-dev?