From 461e52d3238ce05e4777d013a33a66c864ea8704 Mon Sep 17 00:00:00 2001 From: jndaniels Date: Wed, 30 Oct 2024 21:51:39 -0500 Subject: [PATCH] Migration to SQLite --- .../connections/{ERTdb.json => DB.json} | 7 +- .../databases/{ERTdb.json => DB.json} | 7 +- ERTSQlite.db | Bin 16384 -> 16384 bytes app/api/DSremove.json | 3 - app/api/delRecord.json | 60 +++++++++ app/api/insert.json | 116 ++++++++++++++++++ app/api/{dbQuery.json => query.json} | 3 +- .../connections/{ERTdb.json => DB.json} | 7 +- public/ERTSQlite.db | Bin 0 -> 16384 bytes public/dmxAppConnect/config.js | 44 ------- public/trainer.json | 11 ++ views/index.ejs | 107 +++++++++------- views/layouts/main.ejs | 1 - 13 files changed, 263 insertions(+), 103 deletions(-) rename .wappler/targets/Development/app/modules/connections/{ERTdb.json => DB.json} (61%) rename .wappler/targets/Development/databases/{ERTdb.json => DB.json} (91%) delete mode 100644 app/api/DSremove.json create mode 100644 app/api/delRecord.json create mode 100644 app/api/insert.json rename app/api/{dbQuery.json => query.json} (95%) rename app/modules/connections/{ERTdb.json => DB.json} (61%) create mode 100644 public/ERTSQlite.db create mode 100644 public/trainer.json diff --git a/.wappler/targets/Development/app/modules/connections/ERTdb.json b/.wappler/targets/Development/app/modules/connections/DB.json similarity index 61% rename from .wappler/targets/Development/app/modules/connections/ERTdb.json rename to .wappler/targets/Development/app/modules/connections/DB.json index 6afbb54..ceb67ac 100644 --- a/.wappler/targets/Development/app/modules/connections/ERTdb.json +++ b/.wappler/targets/Development/app/modules/connections/DB.json @@ -1,13 +1,12 @@ { - "name": "ERTdb", + "name": "DB", "module": "dbconnector", "action": "connect", "options": { "client": "sqlite3", "connection": { - "filename": "/ERTSQlite.db" + "filename": "/public/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/DB.json similarity index 91% rename from .wappler/targets/Development/databases/ERTdb.json rename to .wappler/targets/Development/databases/DB.json index 16fb2ed..a60288a 100644 --- a/.wappler/targets/Development/databases/ERTdb.json +++ b/.wappler/targets/Development/databases/DB.json @@ -1,17 +1,20 @@ { "type": "sqlite3", "connection": { - "filename": "/ERTSQlite.db" + "filename": "/public/ERTSQlite.db" }, "direct": true, "schema": { "tables": { + "_da_old_20241029": { + "db": {} + }, "da": { "db": {}, "columns": { "ID": { "db": { - "type": "integer", + "type": "increments", "primary": true, "unique": false, "nullable": false diff --git a/ERTSQlite.db b/ERTSQlite.db index 839dbe593d426381eeb46c50a19e8564f8ab1427..954eec78c25004987d39dc69ed34c9b77e794260 100644 GIT binary patch delta 67 zcmZo@U~Fh$oFL7}GEv5vk!54T5_vX8{-+H5Pd5t++~${-WMpR$l@w$W^-4`kGc+;= TqL2u+sUY4agTMUDoGFO_S1=L- delta 33 pcmZo@U~Fh$oFL7}JWhFIBh8 zZotP`4^tF&mvhFLh>p(apb>NHT%ijmoCO=%-qWKSRQ(%Es75L}VZZy@M6E zEQX`Xp`E1;t=}}2U9<5_&-GmOSf%B;79Z5RIk&Pi7SHA#`=MRn`FV%umvcG3P{__@ z3ak9Fy~;Do&U`i>mCxCEXSh-0trbgk-_J+;S=_N#j+Xt6by2B_e7(FTwk;lr7r|jk zEpP*ot<~!7MWVdvS6>Rz5~W#GeO`&567QgQ5AD2CwEk2|*}c~2s_41Js_zxkqv?sU z(ezaNyyJMs?UzsL|1k3Z?y|9QtNg+E_ZfS*VI&R97%+MaP5-0+(tqkd^soA7{ou4eXILv* zg8>+T0T_S*7=Qs7fB_hQfq!N|o7S4o)}{z<5!@u0B)CB^K`>5`CKw|aCAdy7LXeVR ztgv&9?X{#_NjziU8!L%T_K9Gh;3L5Yf<1!w1aAr65WFU+6Ziz{1WyPS2_6yLA($jc z5nLv?K+sDd`#OKrS99f(sj({;P1T$gr4pZUD;vVEjitw%UuQ+B?9a| - + +
+ - +
- - - - - - - - - - - - - - - - - -
$idDa full nameDa driver licenseDa driver license state
- - -
+ + + + + + + + + + + + + + + + + + + + + +
IdDb full nameDb license numberDb state issueDb employeeOwner
+
+ + +
+ +
-

No Records

+

{{DBSC1.data.query.count()+" Records"}}

diff --git a/views/layouts/main.ejs b/views/layouts/main.ejs index 049b684..eb6f747 100644 --- a/views/layouts/main.ejs +++ b/views/layouts/main.ejs @@ -24,7 +24,6 @@ -