mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
assertions and small cleanups
This commit is contained in:
parent
8b1f0ea23c
commit
750a9c6463
4 changed files with 20 additions and 14 deletions
|
@ -66,8 +66,14 @@ impl Table {
|
|||
|
||||
pub fn get_column_at(&self, index: usize) -> &Column {
|
||||
match self {
|
||||
Self::BTree(table) => table.columns.get(index).unwrap(),
|
||||
Self::Pseudo(table) => table.columns.get(index).unwrap(),
|
||||
Self::BTree(table) => table
|
||||
.columns
|
||||
.get(index)
|
||||
.expect("column index out of bounds"),
|
||||
Self::Pseudo(table) => table
|
||||
.columns
|
||||
.get(index)
|
||||
.expect("column index out of bounds"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue