Trait geekorm_core::TableBuilder

source ·
pub trait TableBuilder
where Self: Sized,
{ // Required methods fn table() -> Table; fn get_table(&self) -> Table; fn table_name() -> String; }
Expand description

Trait for basic creation of tables

This trait is used to define the table structure for the database. It is used to define the table name and the columns in the table.

Required Methods§

source

fn table() -> Table

Get the table struct

source

fn get_table(&self) -> Table

Get the table struct for the current instance

source

fn table_name() -> String

Get the name of the table

Object Safety§

This trait is not object safe.

Implementors§