Cargo Features

[dependencies]
ormlite = { version = "0.22.2", 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 ormlite is added without default-features = false somewhere in the dependency tree.

mysql default-mysql?

Enables mysql of ormlite-macro and sqlx

sqlite default-sqlite?

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

Affects ormlite::sqlite

postgres default-postgres?

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

Affects ormlite::postgres

runtime-tokio-rustls default

Enables runtime-tokio-rustls of ormlite-core, ormlite-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 ormlite-macro

default-sqlite = sqlite

Enables default-sqlite of ormlite-macro

default-mysql = mysql

Enables default-mysql of ormlite-macro