@dbcube/schema-builder
Advanced tools
+20
-12
@@ -1098,4 +1098,6 @@ "use strict"; | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new import_core.Engine(cubeDbName); | ||
| const dml = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const dml = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1113,3 +1115,3 @@ "parse_table", | ||
| const parseJson = JSON.stringify(dml.data.actions).replace(/[\r\n\t]/g, "").replace(/\\[rnt]/g, "").replace(/\s{2,}/g, " "); | ||
| const queries = await fileEngine.run("schema_engine", [ | ||
| const queries = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1128,3 +1130,3 @@ "generate", | ||
| const parseJsonQueries = JSON.stringify(queries.data); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1226,4 +1228,6 @@ "execute", | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new import_core.Engine(cubeDbName); | ||
| const dml = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const dml = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1241,3 +1245,3 @@ "parse_table", | ||
| const parseJson = JSON.stringify(dml.data.actions).replace(/[\r\n\t]/g, "").replace(/\\[rnt]/g, "").replace(/\s{2,}/g, " "); | ||
| const queries = await fileEngine.run("schema_engine", [ | ||
| const queries = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1255,3 +1259,3 @@ "generate", | ||
| const parseJsonQueries = JSON.stringify(queries.data); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1334,4 +1338,6 @@ "execute", | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new import_core.Engine(cubeDbName); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1410,4 +1416,6 @@ "seeder", | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new import_core.Engine(cubeDbName); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1414,0 +1422,0 @@ "trigger", |
+20
-12
@@ -1058,4 +1058,6 @@ // src/lib/Schema.ts | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new Engine(cubeDbName); | ||
| const dml = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const dml = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1073,3 +1075,3 @@ "parse_table", | ||
| const parseJson = JSON.stringify(dml.data.actions).replace(/[\r\n\t]/g, "").replace(/\\[rnt]/g, "").replace(/\s{2,}/g, " "); | ||
| const queries = await fileEngine.run("schema_engine", [ | ||
| const queries = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1088,3 +1090,3 @@ "generate", | ||
| const parseJsonQueries = JSON.stringify(queries.data); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1186,4 +1188,6 @@ "execute", | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new Engine(cubeDbName); | ||
| const dml = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const dml = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1201,3 +1205,3 @@ "parse_table", | ||
| const parseJson = JSON.stringify(dml.data.actions).replace(/[\r\n\t]/g, "").replace(/\\[rnt]/g, "").replace(/\s{2,}/g, " "); | ||
| const queries = await fileEngine.run("schema_engine", [ | ||
| const queries = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1215,3 +1219,3 @@ "generate", | ||
| const parseJsonQueries = JSON.stringify(queries.data); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1294,4 +1298,6 @@ "execute", | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new Engine(cubeDbName); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1370,4 +1376,6 @@ "seeder", | ||
| const cubeDbName = dbResult.status === 200 ? dbResult.message : this.name; | ||
| const fileEngine = new Engine(cubeDbName); | ||
| const response = await fileEngine.run("schema_engine", [ | ||
| if (cubeDbName !== this.name) { | ||
| continue; | ||
| } | ||
| const response = await this.engine.run("schema_engine", [ | ||
| "--action", | ||
@@ -1374,0 +1382,0 @@ "trigger", |
+2
-2
| { | ||
| "name": "@dbcube/schema-builder", | ||
| "version": "5.0.9", | ||
| "version": "5.0.10", | ||
| "description": "The Dbcube Query Builder is a lightweight, flexible, and fluent library for building queries across multiple database engines, including MySQL, PostgreSQL, SQLite, and MongoDB, using JavaScript/Node.js. \nIts agnostic design allows you to generate data manipulation (DML) and data definition (DDL) operations with a clean, chainable syntax—without sacrificing power or expressiveness.\nIt’s designed to work seamlessly in both SQL and NoSQL environments, providing a consistent abstraction layer across different storage technologies while still leveraging the native capabilities of each engine.", | ||
@@ -57,3 +57,3 @@ "main": "dist/index.cjs", | ||
| "dependencies": { | ||
| "@dbcube/core": "^5.0.8", | ||
| "@dbcube/core": "^5.0.9", | ||
| "chalk": "^5.6.2", | ||
@@ -60,0 +60,0 @@ "ora": "^9.3.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
451734
0.04%3087
0.52%13
8.33%Updated