diff --git a/app/api/dbQuery.json b/app/api/dbQuery.json index 18cca0a..e53ce8d 100644 --- a/app/api/dbQuery.json +++ b/app/api/dbQuery.json @@ -1,3 +1,64 @@ { - "exec": {} + "meta": { + "$_GET": [ + { + "type": "text", + "name": "sort" + }, + { + "type": "text", + "name": "dir" + } + ] + }, + "exec": { + "steps": { + "name": "query", + "module": "dbconnector", + "action": "select", + "options": { + "connection": "ERTdb", + "sql": { + "type": "select", + "columns": [], + "params": [], + "table": { + "name": "da" + }, + "primary": "ID", + "joins": [], + "orders": [], + "query": "select * from `da`" + } + }, + "output": true, + "meta": [ + { + "type": "number", + "name": "ID" + }, + { + "type": "text", + "name": "db_fullName" + }, + { + "type": "text", + "name": "db_licenseNumber" + }, + { + "type": "text", + "name": "db_stateIssue" + }, + { + "type": "number", + "name": "db_employeeID" + }, + { + "type": "text", + "name": "owner" + } + ], + "outputType": "array" + } + } } \ No newline at end of file diff --git a/views/index.ejs b/views/index.ejs index 7d876a0..6af5530 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -1,4 +1,5 @@ +