type Table
impl Table<T>Since. 1.0.0-beta
Methods
query | () -> Query<T> dbA query over every row of the table; add sqlWhere, sqlOrder, skip, take and run it. |
insert | (x: &T) dbInserts a row; a failure panics (Db.tryInsert returns a DbError). |
upsert | (x: &T) dbInserts the row, or replaces the row with the same primary key. |
update | (x: &T) dbUpdates the row with the primary key of x; a missing row panics (Db.tryUpdate returns a DbError). |
delete | (x: &T) dbDeletes the row with the primary key of x; a missing row panics (Db.tryDelete returns a DbError). |
all | () -> List<T> dbEvery row of the table. |
count | () -> i64 dbThe number of rows of the table. |
Defined in: std/orm/orm.oxl:987