Skip to main content

COLLATE

Constant COLLATE 

Source
pub const COLLATE: ColumnMarker;
Expand description

Sets the collation of a text column.

Takes BINARY, NOCASE, RTRIM, or the name of a collation the application registers, as a string.

ยงExamples

#[column(COLLATE = NOCASE)]
name: String,

// String form for custom registered collations:
#[column(COLLATE = "my_collation")]
label: String,

See: https://sqlite.org/datatype3.html#collation