MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / table_auto

Function table_auto

sea-orm-migration/src/schema.rs:67–69  ·  view source on GitHub ↗

Wrapping table schema creation.

(name: T)

Source from the content-addressed store, hash-verified

65
66/// Wrapping table schema creation.
67pub fn table_auto<T: IntoIden + 'static>(name: T) -> TableCreateStatement {
68 timestamps(Table::create().table(name).if_not_exists().take())
69}
70
71/// Create a primary key column with auto-increment feature.
72pub fn pk_auto<T: IntoIden>(name: T) -> ColumnDef {

Callers 10

upMethod · 0.85
upMethod · 0.85
upMethod · 0.85
upMethod · 0.85
upMethod · 0.85
upMethod · 0.85
upMethod · 0.85
upMethod · 0.85
upMethod · 0.85
upMethod · 0.85

Calls 3

timestampsFunction · 0.85
takeMethod · 0.80
createFunction · 0.50

Tested by

no test coverage detected