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

Function custom

sea-orm-migration/src/schema.rs:546–548  ·  view source on GitHub ↗
(col: T, name: N)

Source from the content-addressed store, hash-verified

544}
545
546pub fn custom<T: IntoIden, N: IntoIden>(col: T, name: N) -> ColumnDef {
547 ColumnDef::new(col).custom(name).not_null().take()
548}
549
550pub fn custom_null<T: IntoIden, N: IntoIden>(col: T, name: N) -> ColumnDef {
551 ColumnDef::new(col).custom(name).null().take()

Callers 2

serializeMethod · 0.85

Calls 2

takeMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected