Locking per table is a concern of a different PR
This commit is contained in:
parent
5909df60b0
commit
e22b31dc41
2 changed files with 1 additions and 3 deletions
|
|
@ -12,8 +12,7 @@ use crate::type_system::{IndexableValue, Uuid, Value};
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
pub struct Table {
|
pub struct Table {
|
||||||
schema: TableSchema,
|
schema: TableSchema,
|
||||||
rows: Rows, // TODO: Consider wrapping this in a lock. Also consider if we need to have the
|
rows: Rows,
|
||||||
// same lock for both rows and indexes
|
|
||||||
indexes: HashMap<Column, ColumnIndex>,
|
indexes: HashMap<Column, ColumnIndex>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,6 @@ impl State {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn interpret<'a>(&'a mut self, operation: Operation) -> DbResult<Response<'a>> {
|
pub fn interpret<'a>(&'a mut self, operation: Operation) -> DbResult<Response<'a>> {
|
||||||
// TODO: lock stuff
|
|
||||||
use Operation::*;
|
use Operation::*;
|
||||||
|
|
||||||
match operation {
|
match operation {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue