Skip to main content

WITHOUT_ROWID

Constant WITHOUT_ROWID 

Source
pub const WITHOUT_ROWID: TableMarker;
Expand description

Makes the table WITHOUT ROWID, stored as a clustered index on its primary key.

ยงExamples

#[SQLiteTable(without_rowid)]
struct KeyValue {
    #[column(primary)]
    key: String,
    value: String,
}

Requires an explicit PRIMARY KEY.

See: https://sqlite.org/withoutrowid.html