TableSchema in oxide_sql_core::schema - Rust

pub trait TableSchema: Table {
    const SCHEMA: &'static [ColumnSchema];
}
Expand description

Tables that provide full column schema for DDL generation.

Implemented by the #[derive(Table)] macro alongside the Table trait. While Table gives you column names, TableSchema gives you full column metadata (types, constraints, defaults) needed to generate CREATE TABLE statements.

Source

Complete schema for every column in declaration order.

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.