ockam_node 0.139.0

This crate provides an implementation of an Ockam [Ockam][main-ockam-crate-link] Node and is intended for use by crates that provide features and add-ons to the main [Ockam][main-ockam-crate-link] library. The main [Ockam][main-ockam-crate-link] crate re-exports types defined in this crate, when the `"std"` feature is enabled.
Documentation
1
2
3
4
5
6
7
8
use crate::database::Migrator;
use ockam_core::Result;

/// This trait runs migrations on a given database
pub trait MigrationSet {
    /// Migrate the content of a database: schema and or data
    fn create_migrator(&self) -> Result<Migrator>;
}