Skip to main content

KeepsakeSqlxBackend

Trait KeepsakeSqlxBackend 

Source
pub trait KeepsakeSqlxBackend:
    Debug
    + Clone
    + Copy
    + Send
    + Sync
    + 'static {
    type Database: Database;

    const NAME: &'static str;
}
Expand description

SQLx backend supported by Keepsake.

Required Associated Constants§

Source

const NAME: &'static str

Stable backend name stored in schema metadata.

Required Associated Types§

Source

type Database: Database

SQLx database driver for this backend.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl KeepsakeSqlxBackend for PostgresBackend

Available on crate feature postgres only.
Source§

const NAME: &'static str = "postgres"

Source§

type Database = Postgres