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

Function string_len_null

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

Source from the content-addressed store, hash-verified

107}
108
109pub fn string_len_null<T: IntoIden>(col: T, length: u32) -> ColumnDef {
110 ColumnDef::new(col).string_len(length).null().take()
111}
112
113pub fn string_len_uniq<T: IntoIden>(col: T, length: u32) -> ColumnDef {
114 string_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