diff --git a/engine/dsql.js b/engine/dsql.js index 9ae82d6..3d7f96d 100644 --- a/engine/dsql.js +++ b/engine/dsql.js @@ -74,7 +74,7 @@ async function run() { schemaData = fetchedDbSchemaObject; } else if (fs.existsSync(dbSchemaLocalFilePath)) { - schemaData = JSON.parse(fs.readFileSync(dbSchemaLocalFilePath, "utf8")); + schemaData = [JSON.parse(fs.readFileSync(dbSchemaLocalFilePath, "utf8"))]; } else { console.log("No source for DB Schema. Please provide a local `dsql.schema.json` file, or provide `DSQL_KEY` and `DSQL_REF_DB_NAME` environment variables."); process.exit(); @@ -90,6 +90,7 @@ async function run() { } console.log("Now generating and mapping databases ..."); + // console.log("Db Schema =>", schemaData); // deepcode ignore reDOS: await createDbFromSchema(schemaData); console.log("Databases created Successfully!"); diff --git a/package.json b/package.json index 871d626..a5632d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.8.3", + "version": "1.8.4", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": {