@inflector/optima 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -503,7 +503,6 @@ ${valuesBlock}${isReturning ? "\nRETURNING *" : ""};`;
|
|
|
503
503
|
};
|
|
504
504
|
this.BuildUpdate = (TableName, changes, options) => {
|
|
505
505
|
const { where, returning } = options;
|
|
506
|
-
console.log(changes);
|
|
507
506
|
const setClauses = [];
|
|
508
507
|
for (const [key, value] of Object.entries(changes)) {
|
|
509
508
|
if (value !== void 0) {
|
|
@@ -598,7 +597,6 @@ ${valuesBlock}${isReturning ? "\nRETURNING *" : ""};`;
|
|
|
598
597
|
}
|
|
599
598
|
async InitTable() {
|
|
600
599
|
const SQL = SQLBuilder.BuildTable(this.Name, this.Columns);
|
|
601
|
-
console.log(SQL);
|
|
602
600
|
await this.Connection.run(SQL);
|
|
603
601
|
}
|
|
604
602
|
static async create(name, Columns, Connection) {
|
|
@@ -845,7 +843,6 @@ var OptimaDB = class _OptimaDB {
|
|
|
845
843
|
const cleanSchema = SchemaMigrator.transformSchema(schema);
|
|
846
844
|
const migrationSQL = SchemaMigrator.generateSQL(existingTables, cleanSchema);
|
|
847
845
|
if (migrationSQL.length > 0) {
|
|
848
|
-
console.log(`[OptimaDB] Applying ${migrationSQL.length} migrations...`);
|
|
849
846
|
await connection.run("BEGIN TRANSACTION;");
|
|
850
847
|
try {
|
|
851
848
|
for (const sql of migrationSQL) {
|