Skip to main content

Crate capy_db

Crate capy_db 

Source
Expand description

SeaORM connection and migration integration.

Structs§

MigrationStatus
A migration’s name and current database status.
NoMigrations
Default migrator for applications that have no migrations yet.
SeedContext
Database transaction and typed settings for explicit application-owned development data.
Seeds
An explicit application-owned seed callback. All writes share one transaction.

Enums§

DatabaseConnection
Handle a database connection depending on the backend enabled by the feature flags. This creates a database pool. This will be Clone unless the feature flag mock is enabled.

Traits§

MigrationTrait
The migration definition
MigratorTrait
Performing migrations on a database

Functions§

connect
Connect to the configured database, with SQL logging disabled by default.
status
List applied and pending migrations using SeaORM’s native migration ledger.

Type Aliases§

SeedFuture
A seed future borrowing the transaction for the duration of the callback.