Expand description
Types to declare schemas and migrations.
A good starting point is too look at crate::migration::schema.
Structs§
- Config
- Config is used to open a database from a file or in memory.
- Migrated
- Migrated provides a proof of migration.
- Migrator
- Migrator is used to apply database migrations.
- Transaction
Migrate - Transaction type for use in migrations.
Enums§
- Foreign
Keys - Which method should be used to check foreign-key constraints.
- Synchronous
- https://www.sqlite.org/pragma.html#pragma_synchronous
Functions§
- hash_
schema - Calculate the hash of a shema.
Attribute Macros§
- schema
- Use this macro to define your schema.