Crate ic_sql_migrate

Crate ic_sql_migrate 

Source
Expand description

A lightweight SQLite migration library for Internet Computer (ICP) canisters.

This library provides automatic database schema management and version control through SQL migration files that are embedded at compile time and executed at runtime.

Macros§

include
Includes all migration files discovered by the list function at compile time.

Structs§

Migration
Represents a single database migration with its unique identifier and SQL content.

Enums§

Error
Custom error type for migration operations.

Functions§

list
Discovers and lists all SQL migration files for inclusion at compile time.
up
Executes all pending migrations in order.

Type Aliases§

MigrateResult