Skip to main content

Module migrations

Module migrations 

Source
Expand description

Embedded SQL migrations.

Migrations are bundled into the binary via include_str! so applications do not need to ship migration files separately. Each migration runs in a transaction; the schema version is tracked in _cel_memory_schema_version.

Constants§

LATEST_VERSION
Highest schema version this build can apply.

Functions§

run
Run all pending migrations against the connection. Idempotent: a connection that already at LATEST_VERSION becomes a no-op.