Trait cuprate_database::Table

source ·
pub trait Table: 'static {
    type Key: Key + 'static;
    type Value: Storable + 'static;

    const NAME: &'static str;
}
Expand description

Database table metadata.

Purely compile time information for database tables.

See crate::define_tables for bulk table generation.

Required Associated Constants§

source

const NAME: &'static str

Name of the database table.

Required Associated Types§

source

type Key: Key + 'static

Primary key type.

source

type Value: Storable + 'static

Value type.

Object Safety§

This trait is not object safe.

Implementors§