pub struct RusqliteAdapter<'a, E> { /* private fields */ }
Expand description

Adapter between schemer and SQLite.

Implementations

Construct a SQLite schemer adapter.

table_name specifies the name of the table that schemer will use for storing metadata about applied migrations. If None, a default will be used.

let mut conn = rusqlite::Connection::open_in_memory().unwrap();
let adapter: schemer_rusqlite::RusqliteAdapter<RusqliteError> = schemer_rusqlite::RusqliteAdapter::new(&mut conn, None);

Initialize the schemer metadata schema. This must be called before using Migrator with this adapter. This is safe to call multiple times.

Trait Implementations

Type migrations must implement for this adapter.
Type of errors returned by this adapter.
Returns the set of IDs for migrations that have been applied.
Apply a single migration.
Revert a single migration.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.