Cargo Features
[dependencies]
moosicbox_schema = { version = "0.1.0", default-features = false, features = ["fail-on-warnings", "mysql", "postgres", "sqlite"] }
- default = sqlite
-
The
sqlite
feature is set by default whenevermoosicbox_schema
is added without
somewhere in the dependency tree.default-features = false - fail-on-warnings
- mysql
-
Enables mysql of diesel and diesel_migrations
- postgres
-
Enables postgres of diesel and diesel_migrations
Affects
moosicbox_schema::POSTGRES_CONFIG_MIGRATIONS
,moosicbox_schema::POSTGRES_LIBRARY_MIGRATIONS
,moosicbox_schema::migrate_config
,moosicbox_schema::migrate_library
… - sqlite default
-
Enables sqlite of diesel and diesel_migrations
Affects
moosicbox_schema::SQLITE_CONFIG_MIGRATIONS
,moosicbox_schema::SQLITE_LIBRARY_MIGRATIONS
,moosicbox_schema::migrate_config
,moosicbox_schema::migrate_library
…