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

Function json_uniq

sea-orm-migration/src/schema.rs:518–520  ·  view source on GitHub ↗
(col: T)

Source from the content-addressed store, hash-verified

516}
517
518pub fn json_uniq<T: IntoIden>(col: T) -> ColumnDef {
519 json(col).unique_key().take()
520}
521
522pub fn json_binary<T: IntoIden>(col: T) -> ColumnDef {
523 ColumnDef::new(col).json_binary().not_null().take()

Callers

nothing calls this directly

Calls 2

jsonFunction · 0.85
takeMethod · 0.80

Tested by

no test coverage detected