Skip to main content

ferro_migration/
lib.rs

1//! Backend-portable migration helpers for ferro applications.
2//!
3//! These helpers dispatch on `SchemaManager::get_database_backend()` so a single
4//! call works identically on SQLite and Postgres. Use them inside
5//! `MigrationTrait::up` implementations to avoid hand-rolled
6//! `DbBackend::Sqlite`-pinned raw SQL.
7//!
8//! See the crate README for the pgcrypto requirement note.
9
10#![warn(missing_docs)]
11
12pub mod backfill;
13pub mod error;
14
15pub use crate::backfill::{
16    backfill, backfill_current_timestamp, backfill_random_hex, backfill_random_uuid,
17};
18pub use crate::error::Error;