From 722f85cd4a8b6781b2faf6a9c4a56e098502ebfa Mon Sep 17 00:00:00 2001 From: Tben Date: Sat, 12 Aug 2023 14:47:43 +0100 Subject: [PATCH] Upgrades --- {bin => engine}/dsql.js | 2 +- {bin => engine}/engine/createDbFromSchema.js | 0 {bin => engine}/engine/data/dataTypes.json | 0 {bin => engine}/engine/data/defaultFields.json | 0 {bin => engine}/engine/data/possibleFields.json | 0 {bin => engine}/engine/deploy.js | 0 {bin => engine}/engine/encodingUpdate.js | 0 {bin => engine}/engine/grantFullPriviledges.js | 0 {bin => engine}/engine/lessWatch.js | 0 {bin => engine}/engine/readImage.js | 0 {bin => engine}/engine/recoverMainJsonFromDb.js | 0 {bin => engine}/engine/tailwindWatch.js | 0 {bin => engine}/engine/test.js | 0 {bin => engine}/engine/updateChildrenTablesOnDb.js | 0 {bin => engine}/engine/updateDateTimestamps.js | 0 {bin => engine}/engine/updateDbSlugsForTableRecords.js | 0 {bin => engine}/engine/utils/camelJoinedtoCamelSpace.js | 0 {bin => engine}/engine/utils/createTable.js | 0 {bin => engine}/engine/utils/dbHandler.js | 0 {bin => engine}/engine/utils/defaultFieldsRegexp.js | 0 {bin => engine}/engine/utils/endConnection.js | 0 {bin => engine}/engine/utils/generateColumnDescription.js | 0 {bin => engine}/engine/utils/noDatabaseDbHandler.js | 0 {bin => engine}/engine/utils/parseDbResults.js | 0 {bin => engine}/engine/utils/slugToCamelTitle.js | 0 {bin => engine}/engine/utils/supplementTable.js | 0 {bin => engine}/engine/utils/updateTable.js | 0 {bin => engine}/engine/utils/varDatabaseDbHandler.js | 0 {bin => engine}/engine/utils/varReadOnlyDatabaseDbHandler.js | 0 {bin => engine}/query/get.js | 0 {bin => engine}/query/post.js | 0 {bin => engine}/query/utils/addDbEntry.js | 0 {bin => engine}/query/utils/deleteDbEntry.js | 0 {bin => engine}/query/utils/runQuery.js | 0 {bin => engine}/query/utils/updateDbEntry.js | 0 package.json | 4 ++-- utils/get.js | 2 +- 37 files changed, 4 insertions(+), 4 deletions(-) rename {bin => engine}/dsql.js (99%) rename {bin => engine}/engine/createDbFromSchema.js (100%) rename {bin => engine}/engine/data/dataTypes.json (100%) rename {bin => engine}/engine/data/defaultFields.json (100%) rename {bin => engine}/engine/data/possibleFields.json (100%) rename {bin => engine}/engine/deploy.js (100%) rename {bin => engine}/engine/encodingUpdate.js (100%) rename {bin => engine}/engine/grantFullPriviledges.js (100%) rename {bin => engine}/engine/lessWatch.js (100%) rename {bin => engine}/engine/readImage.js (100%) rename {bin => engine}/engine/recoverMainJsonFromDb.js (100%) rename {bin => engine}/engine/tailwindWatch.js (100%) rename {bin => engine}/engine/test.js (100%) rename {bin => engine}/engine/updateChildrenTablesOnDb.js (100%) rename {bin => engine}/engine/updateDateTimestamps.js (100%) rename {bin => engine}/engine/updateDbSlugsForTableRecords.js (100%) rename {bin => engine}/engine/utils/camelJoinedtoCamelSpace.js (100%) rename {bin => engine}/engine/utils/createTable.js (100%) rename {bin => engine}/engine/utils/dbHandler.js (100%) rename {bin => engine}/engine/utils/defaultFieldsRegexp.js (100%) rename {bin => engine}/engine/utils/endConnection.js (100%) rename {bin => engine}/engine/utils/generateColumnDescription.js (100%) rename {bin => engine}/engine/utils/noDatabaseDbHandler.js (100%) rename {bin => engine}/engine/utils/parseDbResults.js (100%) rename {bin => engine}/engine/utils/slugToCamelTitle.js (100%) rename {bin => engine}/engine/utils/supplementTable.js (100%) rename {bin => engine}/engine/utils/updateTable.js (100%) rename {bin => engine}/engine/utils/varDatabaseDbHandler.js (100%) rename {bin => engine}/engine/utils/varReadOnlyDatabaseDbHandler.js (100%) rename {bin => engine}/query/get.js (100%) rename {bin => engine}/query/post.js (100%) rename {bin => engine}/query/utils/addDbEntry.js (100%) rename {bin => engine}/query/utils/deleteDbEntry.js (100%) rename {bin => engine}/query/utils/runQuery.js (100%) rename {bin => engine}/query/utils/updateDbEntry.js (100%) diff --git a/bin/dsql.js b/engine/dsql.js similarity index 99% rename from bin/dsql.js rename to engine/dsql.js index 9ae82d6..390008f 100644 --- a/bin/dsql.js +++ b/engine/dsql.js @@ -1,4 +1,4 @@ -#! /usr/bin/env node +#! /usr/engine/env node // @ts-check const fs = require("fs"); diff --git a/bin/engine/createDbFromSchema.js b/engine/engine/createDbFromSchema.js similarity index 100% rename from bin/engine/createDbFromSchema.js rename to engine/engine/createDbFromSchema.js diff --git a/bin/engine/data/dataTypes.json b/engine/engine/data/dataTypes.json similarity index 100% rename from bin/engine/data/dataTypes.json rename to engine/engine/data/dataTypes.json diff --git a/bin/engine/data/defaultFields.json b/engine/engine/data/defaultFields.json similarity index 100% rename from bin/engine/data/defaultFields.json rename to engine/engine/data/defaultFields.json diff --git a/bin/engine/data/possibleFields.json b/engine/engine/data/possibleFields.json similarity index 100% rename from bin/engine/data/possibleFields.json rename to engine/engine/data/possibleFields.json diff --git a/bin/engine/deploy.js b/engine/engine/deploy.js similarity index 100% rename from bin/engine/deploy.js rename to engine/engine/deploy.js diff --git a/bin/engine/encodingUpdate.js b/engine/engine/encodingUpdate.js similarity index 100% rename from bin/engine/encodingUpdate.js rename to engine/engine/encodingUpdate.js diff --git a/bin/engine/grantFullPriviledges.js b/engine/engine/grantFullPriviledges.js similarity index 100% rename from bin/engine/grantFullPriviledges.js rename to engine/engine/grantFullPriviledges.js diff --git a/bin/engine/lessWatch.js b/engine/engine/lessWatch.js similarity index 100% rename from bin/engine/lessWatch.js rename to engine/engine/lessWatch.js diff --git a/bin/engine/readImage.js b/engine/engine/readImage.js similarity index 100% rename from bin/engine/readImage.js rename to engine/engine/readImage.js diff --git a/bin/engine/recoverMainJsonFromDb.js b/engine/engine/recoverMainJsonFromDb.js similarity index 100% rename from bin/engine/recoverMainJsonFromDb.js rename to engine/engine/recoverMainJsonFromDb.js diff --git a/bin/engine/tailwindWatch.js b/engine/engine/tailwindWatch.js similarity index 100% rename from bin/engine/tailwindWatch.js rename to engine/engine/tailwindWatch.js diff --git a/bin/engine/test.js b/engine/engine/test.js similarity index 100% rename from bin/engine/test.js rename to engine/engine/test.js diff --git a/bin/engine/updateChildrenTablesOnDb.js b/engine/engine/updateChildrenTablesOnDb.js similarity index 100% rename from bin/engine/updateChildrenTablesOnDb.js rename to engine/engine/updateChildrenTablesOnDb.js diff --git a/bin/engine/updateDateTimestamps.js b/engine/engine/updateDateTimestamps.js similarity index 100% rename from bin/engine/updateDateTimestamps.js rename to engine/engine/updateDateTimestamps.js diff --git a/bin/engine/updateDbSlugsForTableRecords.js b/engine/engine/updateDbSlugsForTableRecords.js similarity index 100% rename from bin/engine/updateDbSlugsForTableRecords.js rename to engine/engine/updateDbSlugsForTableRecords.js diff --git a/bin/engine/utils/camelJoinedtoCamelSpace.js b/engine/engine/utils/camelJoinedtoCamelSpace.js similarity index 100% rename from bin/engine/utils/camelJoinedtoCamelSpace.js rename to engine/engine/utils/camelJoinedtoCamelSpace.js diff --git a/bin/engine/utils/createTable.js b/engine/engine/utils/createTable.js similarity index 100% rename from bin/engine/utils/createTable.js rename to engine/engine/utils/createTable.js diff --git a/bin/engine/utils/dbHandler.js b/engine/engine/utils/dbHandler.js similarity index 100% rename from bin/engine/utils/dbHandler.js rename to engine/engine/utils/dbHandler.js diff --git a/bin/engine/utils/defaultFieldsRegexp.js b/engine/engine/utils/defaultFieldsRegexp.js similarity index 100% rename from bin/engine/utils/defaultFieldsRegexp.js rename to engine/engine/utils/defaultFieldsRegexp.js diff --git a/bin/engine/utils/endConnection.js b/engine/engine/utils/endConnection.js similarity index 100% rename from bin/engine/utils/endConnection.js rename to engine/engine/utils/endConnection.js diff --git a/bin/engine/utils/generateColumnDescription.js b/engine/engine/utils/generateColumnDescription.js similarity index 100% rename from bin/engine/utils/generateColumnDescription.js rename to engine/engine/utils/generateColumnDescription.js diff --git a/bin/engine/utils/noDatabaseDbHandler.js b/engine/engine/utils/noDatabaseDbHandler.js similarity index 100% rename from bin/engine/utils/noDatabaseDbHandler.js rename to engine/engine/utils/noDatabaseDbHandler.js diff --git a/bin/engine/utils/parseDbResults.js b/engine/engine/utils/parseDbResults.js similarity index 100% rename from bin/engine/utils/parseDbResults.js rename to engine/engine/utils/parseDbResults.js diff --git a/bin/engine/utils/slugToCamelTitle.js b/engine/engine/utils/slugToCamelTitle.js similarity index 100% rename from bin/engine/utils/slugToCamelTitle.js rename to engine/engine/utils/slugToCamelTitle.js diff --git a/bin/engine/utils/supplementTable.js b/engine/engine/utils/supplementTable.js similarity index 100% rename from bin/engine/utils/supplementTable.js rename to engine/engine/utils/supplementTable.js diff --git a/bin/engine/utils/updateTable.js b/engine/engine/utils/updateTable.js similarity index 100% rename from bin/engine/utils/updateTable.js rename to engine/engine/utils/updateTable.js diff --git a/bin/engine/utils/varDatabaseDbHandler.js b/engine/engine/utils/varDatabaseDbHandler.js similarity index 100% rename from bin/engine/utils/varDatabaseDbHandler.js rename to engine/engine/utils/varDatabaseDbHandler.js diff --git a/bin/engine/utils/varReadOnlyDatabaseDbHandler.js b/engine/engine/utils/varReadOnlyDatabaseDbHandler.js similarity index 100% rename from bin/engine/utils/varReadOnlyDatabaseDbHandler.js rename to engine/engine/utils/varReadOnlyDatabaseDbHandler.js diff --git a/bin/query/get.js b/engine/query/get.js similarity index 100% rename from bin/query/get.js rename to engine/query/get.js diff --git a/bin/query/post.js b/engine/query/post.js similarity index 100% rename from bin/query/post.js rename to engine/query/post.js diff --git a/bin/query/utils/addDbEntry.js b/engine/query/utils/addDbEntry.js similarity index 100% rename from bin/query/utils/addDbEntry.js rename to engine/query/utils/addDbEntry.js diff --git a/bin/query/utils/deleteDbEntry.js b/engine/query/utils/deleteDbEntry.js similarity index 100% rename from bin/query/utils/deleteDbEntry.js rename to engine/query/utils/deleteDbEntry.js diff --git a/bin/query/utils/runQuery.js b/engine/query/utils/runQuery.js similarity index 100% rename from bin/query/utils/runQuery.js rename to engine/query/utils/runQuery.js diff --git a/bin/query/utils/updateDbEntry.js b/engine/query/utils/updateDbEntry.js similarity index 100% rename from bin/query/utils/updateDbEntry.js rename to engine/query/utils/updateDbEntry.js diff --git a/package.json b/package.json index 535030a..9ac534d 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "datasquirel", - "version": "1.5.0", + "version": "1.5.1", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": { - "dsql-watch": "./bin/dsql.js" + "dsql-watch": "./engine/dsql.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/utils/get.js b/utils/get.js index 7a1a91a..623f719 100644 --- a/utils/get.js +++ b/utils/get.js @@ -8,7 +8,7 @@ const https = require("https"); const path = require("path"); const fs = require("fs"); -const localGet = require("../bin/query/get"); +const localGet = require("../engine/query/get"); /** ****************************************************************************** */ /** ****************************************************************************** */