|
@@ -145,7 +145,16 @@ func deleteMap(clause *deleteClause) map[string]any {
|
|
|
}
|
|
|
|
|
|
func updateMap(clause *updateClause) map[string]any {
|
|
|
- return map[string]any{}
|
|
|
+ newTableRows := make(map[string]any)
|
|
|
+ for columnName, value := range clause.newTableRow {
|
|
|
+ newTableRows[columnName] = value.value
|
|
|
+ }
|
|
|
+
|
|
|
+ return map[string]any{
|
|
|
+ "table": clause.table,
|
|
|
+ "where": clause.where,
|
|
|
+ "new_table_row": newTableRows,
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
func selectMap(clause *selectClause) map[string]any {
|