updates
This commit is contained in:
parent
6a8d506ed6
commit
e0f171cc1d
@ -74,7 +74,7 @@ async function run() {
|
|||||||
|
|
||||||
schemaData = fetchedDbSchemaObject;
|
schemaData = fetchedDbSchemaObject;
|
||||||
} else if (fs.existsSync(dbSchemaLocalFilePath)) {
|
} else if (fs.existsSync(dbSchemaLocalFilePath)) {
|
||||||
schemaData = JSON.parse(fs.readFileSync(dbSchemaLocalFilePath, "utf8"));
|
schemaData = [JSON.parse(fs.readFileSync(dbSchemaLocalFilePath, "utf8"))];
|
||||||
} else {
|
} 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.");
|
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();
|
process.exit();
|
||||||
@ -90,6 +90,7 @@ async function run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log("Now generating and mapping databases ...");
|
console.log("Now generating and mapping databases ...");
|
||||||
|
// console.log("Db Schema =>", schemaData);
|
||||||
// deepcode ignore reDOS: <please specify a reason of ignoring this>
|
// deepcode ignore reDOS: <please specify a reason of ignoring this>
|
||||||
await createDbFromSchema(schemaData);
|
await createDbFromSchema(schemaData);
|
||||||
console.log("Databases created Successfully!");
|
console.log("Databases created Successfully!");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "datasquirel",
|
"name": "datasquirel",
|
||||||
"version": "1.8.3",
|
"version": "1.8.4",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
Loading…
Reference in New Issue
Block a user