diff --git a/.gitignore b/.gitignore index ea8c4bf..8cf2bff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +tmp_repl.txt diff --git a/src/main.rs b/src/main.rs index 23eea5e..ba61402 100644 --- a/src/main.rs +++ b/src/main.rs @@ -161,12 +161,12 @@ fn interpret(table_name: TableName, operation: Operation, state: &mut State, con Insert(table_name, values) => { let table: &mut Table = todo!(); - table.insert(values) + table.insert(values, consumer) }, Delete(table_name, maybe_condition) => { let table: &mut Table = todo!(); - table.delete_where(maybe_condition) + table.delete_where(maybe_condition, consumer) }, CreateTable(table_name, table_schema) => { let table = Table::new(table_name, table_schema); @@ -203,11 +203,11 @@ impl Table { todo!() } - fn insert(&mut self, values: InsertionValues) { + fn insert(&mut self, values: InsertionValues, consumer: impl SqlConsumer) { todo!() } - fn delete_where(&mut self, maybe_condition: Option) { + fn delete_where(&mut self, maybe_condition: Option, consumer: impl SqlConsumer) { todo!() } }