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 ^0.7

sqlite default-sqlite?

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

Affects ormlitex::sqlite

postgres default-postgres?

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

Affects ormlitex::postgres

runtime-tokio-rustls default

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

uuid

Enables uuid of sqlx ^0.7

decimal

Enables rust_decimal of sqlx ^0.7

chrono

Enables chrono of sqlx ^0.7

time

Enables time of sqlx ^0.7

json

Enables json of sqlx ^0.7

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