This commit is contained in:
Tben 2023-08-25 08:44:17 +01:00
parent 6a8d506ed6
commit e0f171cc1d
2 changed files with 3 additions and 2 deletions

View File

@ -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: <please specify a reason of ignoring this>
await createDbFromSchema(schemaData);
console.log("Databases created Successfully!");

View File

@ -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": {