Cargo Features

[dependencies]
ormlitex = { version = "0.17.1", default-features = false, features = ["mysql", "sqlite", "postgres", "runtime-tokio-rustls", "uuid", "decimal", "chrono", "time", "json", "default-postgres", "default-sqlite", "default-mysql"] }
default = runtime-tokio-rustls

The runtime-tokio-rustls feature is set by default whenever ormlitex is added without default-features = false somewhere in the dependency tree.

mysql default-mysql?

Enables mysql of ormlitex-macro and sqlx

sqlite default-sqlite?

Enables sqlite of ormlitex-core, ormlitex-macro, and sqlx

Affects ormlitex::sqlite

postgres default-postgres?

Enables postgres of ormlitex-core, ormlitex-macro, and sqlx

Affects ormlitex::postgres

runtime-tokio-rustls default

Enables runtime-tokio-rustls of ormlitex-core, ormlitex-macro, and sqlx

uuid

Enables uuid of sqlx

decimal

Enables rust_decimal of sqlx

chrono

Enables chrono of sqlx

time

Enables time of sqlx

json

Enables json of sqlx

sqlx:

types

default-postgres = postgres

When you have multiple databases configured, you can use the default-<db> feature to set which database the macros will use by default. Use the #[orm(database = "postgres")] attribute to override the default. Use the attribute multiple times to generate code for multiple databases.

Enables default-postgres of ormlitex-macro

default-sqlite = sqlite

Enables default-sqlite of ormlitex-macro

default-mysql = mysql

Enables default-mysql of ormlitex-macro