pub trait Schema {
// Required methods
fn name() -> &'static str;
fn copy() -> &'static str;
fn creates() -> &'static str;
fn indices() -> &'static str;
fn truncates() -> &'static str;
fn freeze() -> &'static str;
fn columns() -> &'static [Type];
}Expand description
Schema metadata for PostgreSQL tables.
Provides compile-time SQL generation for table creation, indexing,
and bulk data operations. All methods return &'static str to avoid
runtime allocations and enable compile-time string construction via
const_format::concatcp!.
§Design
This trait contains no I/O operations—it purely describes table structure.
Actual database operations are handled by Streamable and Hydrate.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.