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

Function char_len_null

sea-orm-migration/src/schema.rs:85–87  ·  view source on GitHub ↗
(col: T, length: u32)

Source from the content-addressed store, hash-verified

83}
84
85pub fn char_len_null<T: IntoIden>(col: T, length: u32) -> ColumnDef {
86 ColumnDef::new(col).char_len(length).null().take()
87}
88
89pub fn char_len_uniq<T: IntoIden>(col: T, length: u32) -> ColumnDef {
90 char_len(col, length).unique_key().take()

Callers

nothing calls this directly

Calls 3

takeMethod · 0.80
newFunction · 0.50
nullMethod · 0.45

Tested by

no test coverage detected