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 wheneverormlitex
is added without
somewhere in the dependency tree.default-features = false - 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
- decimal
-
Enables rust_decimal of sqlx ^0.7
- chrono
- time
- json
-
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