Struct rustdb::table::Table [−][src]
pub struct Table {
pub file: Rc<SortedFile>,
pub info: Rc<ColInfo>,
pub ixlist: RefCell<IxList>,
pub id: i64,
pub id_gen: Cell<i64>,
pub id_gen_dirty: Cell<bool>,
}
Expand description
Database base table. Underlying file, type information about the columns and id allocation.
Fields
file: Rc<SortedFile>
Underlying SortedFile.
info: Rc<ColInfo>
Type information about the columns.
ixlist: RefCell<IxList>
List of indexes.
id: i64
Table id in sys.Table.
id_gen: Cell<i64>
Row id allocator.
id_gen_dirty: Cell<bool>
Row id allocator has changed.
Implementations
Construct a table with specified info.
Drop the underlying file storage ( the table is not useable after this ).
Look for indexed table expression based on supplied WHERE expression (we).
Get record with specified id.
Get record with matching key, using specified index.
Scan all the records in the table.
Get a single record with specified id.
Get records with matching key.
Get records with matching keys.
Initialises last index ( called just after add_index ).
Utility for accessing fields by number.
Utility for updating fields by number.
Update id allocator if supplied row id exceeds current value.