Upgrades
This commit is contained in:
parent
320a271e10
commit
b72e7b27f1
@ -36,10 +36,8 @@ async function createDbFromSchema(dbSchema) {
|
||||
*
|
||||
* @description Grab Schema
|
||||
*/
|
||||
console.log("Starting createDbFromSchema ...");
|
||||
|
||||
if (!dbSchema || !Array.isArray(dbSchema) || !dbSchema[0]) {
|
||||
console.log("Invalid DB schema data");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -48,8 +46,6 @@ async function createDbFromSchema(dbSchema) {
|
||||
const database = dbSchema[i];
|
||||
const { dbFullName, tables } = database;
|
||||
|
||||
console.log("Now constructing database =>", database?.dbFullName);
|
||||
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
@ -57,8 +53,6 @@ async function createDbFromSchema(dbSchema) {
|
||||
/** @type {{ dbFullName: string }[] | null} */
|
||||
const dbCheck = await noDatabaseDbHandler({ query: `SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '${dbFullName}'` });
|
||||
|
||||
console.log("DB CHeck =>", dbCheck);
|
||||
|
||||
if (dbCheck && dbCheck[0]?.dbFullName) {
|
||||
// Database Exists
|
||||
} else {
|
||||
|
@ -1,14 +1,11 @@
|
||||
{
|
||||
"name": "datasquirel",
|
||||
"version": "1.5.2",
|
||||
"version": "1.5.3",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "index.js",
|
||||
"bin": {
|
||||
"dsql-watch": "./engine/dsql.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/BenjaminToby/dsql.git"
|
||||
|
Loading…
Reference in New Issue
Block a user