diff --git a/AlgebraicDataflowArchitectureModel/models/DatabaseTest2.model b/AlgebraicDataflowArchitectureModel/models/DatabaseTest2.model index 5d5cc98..4bb93e0 100644 --- a/AlgebraicDataflowArchitectureModel/models/DatabaseTest2.model +++ b/AlgebraicDataflowArchitectureModel/models/DatabaseTest2.model @@ -1,23 +1,20 @@ init { db := { "accountAndBooks": { - "url": "jdbc:postgresql://localhost:5432/db", + "url": "jdbc:postgresql://localhost:5432/postgres", "user": "root", "password": "pass", "tables": { "accounts": { - "0": { - "name": "tmp" - } + "record": nil }, "books": { - "0": { - "name": "tmp" - } + "record": nil } } } } + current:= { "aid": { "value": 0, @@ -35,7 +32,7 @@ } native channel setRecord(dbName: Str, tableName: Str) { - out db.{dbName}.tables.{tableName}(curRecord: Json, setRecord(newRecord: Json)) = newRecord + out db.{dbName}.tables.{tableName}.record(curRecord, setRecord(newRecord)) = newRecord } native channel updateRecordOnChangeCurrent(varName: Str) {