diff --git a/.wappler/targets/Development/app/modules/connections/ERTdb.json b/.wappler/targets/Development/app/modules/connections/ERTdb.json new file mode 100644 index 0000000..6afbb54 --- /dev/null +++ b/.wappler/targets/Development/app/modules/connections/ERTdb.json @@ -0,0 +1,13 @@ +{ + "name": "ERTdb", + "module": "dbconnector", + "action": "connect", + "options": { + "client": "sqlite3", + "connection": { + "filename": "/ERTSQlite.db" + }, + "tz": "utc" + }, + "fileName": "ERTdb.json" +} \ No newline at end of file diff --git a/.wappler/targets/Development/databases/ERTdb.json b/.wappler/targets/Development/databases/ERTdb.json new file mode 100644 index 0000000..16fb2ed --- /dev/null +++ b/.wappler/targets/Development/databases/ERTdb.json @@ -0,0 +1,65 @@ +{ + "type": "sqlite3", + "connection": { + "filename": "/ERTSQlite.db" + }, + "direct": true, + "schema": { + "tables": { + "da": { + "db": {}, + "columns": { + "ID": { + "db": { + "type": "integer", + "primary": true, + "unique": false, + "nullable": false + } + }, + "db_fullName": { + "db": { + "type": "text", + "primary": false, + "unique": false, + "nullable": true + } + }, + "db_licenseNumber": { + "db": { + "type": "text", + "primary": false, + "unique": false, + "nullable": true + } + }, + "db_stateIssue": { + "db": { + "type": "text", + "primary": false, + "unique": false, + "nullable": true + } + }, + "db_employeeID": { + "db": { + "type": "integer", + "primary": false, + "unique": false, + "nullable": true + } + }, + "owner": { + "db": { + "type": "text", + "primary": false, + "unique": false, + "nullable": true + } + } + } + } + }, + "views": {} + } +} diff --git a/ERTSQlite.db b/ERTSQlite.db index 010f5ef..839dbe5 100644 Binary files a/ERTSQlite.db and b/ERTSQlite.db differ diff --git a/app/api/dbQuery.json b/app/api/dbQuery.json new file mode 100644 index 0000000..18cca0a --- /dev/null +++ b/app/api/dbQuery.json @@ -0,0 +1,3 @@ +{ + "exec": {} +} \ No newline at end of file diff --git a/app/modules/connections/ERTdb.json b/app/modules/connections/ERTdb.json new file mode 100644 index 0000000..6afbb54 --- /dev/null +++ b/app/modules/connections/ERTdb.json @@ -0,0 +1,13 @@ +{ + "name": "ERTdb", + "module": "dbconnector", + "action": "connect", + "options": { + "client": "sqlite3", + "connection": { + "filename": "/ERTSQlite.db" + }, + "tz": "utc" + }, + "fileName": "ERTdb.json" +} \ No newline at end of file diff --git a/package.json b/package.json index c0aa070..36e6aa0 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "session-file-store": "^1.5.0", "socket.io": "^4.7.5", "unzipper": "^0.12.1", - "uuid": "^10.0.0" + "uuid": "^10.0.0", + "sqlite3": "^5.1.6" }, "nodemonConfig": { "watch": [ @@ -49,4 +50,4 @@ ], "ext": "ejs,js,json" } -} +} \ No newline at end of file