Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@dbcube/schema-builder

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbcube/schema-builder - npm Package Compare versions

Comparing version
5.0.9
to
5.0.10
+20
-12
dist/index.cjs

@@ -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",

@@ -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",

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