pub trait DrizzleTable:
Send
+ Sync
+ 'static {
const NAME: &'static str;
const QUALIFIED_NAME: &'static str;
const TABLE_REF: TableRef;
const SCHEMA: Option<&'static str> = None;
const DEPENDENCY_NAMES: &'static [&'static str] = _;
}Expand description
Compile-time table metadata.
Provides table name, schema, columns, keys, and constraints as associated
constants. Implementing this trait automatically provides SQLTableInfo
via a blanket implementation.
Required Associated Constants§
Sourceconst QUALIFIED_NAME: &'static str
const QUALIFIED_NAME: &'static str
Fully-qualified table name (e.g. schema.table).
Provided Associated Constants§
Sourceconst DEPENDENCY_NAMES: &'static [&'static str] = _
const DEPENDENCY_NAMES: &'static [&'static str] = _
Names of tables this table depends on via foreign keys.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".