drizzle-kit 0.30.2-de3c537 → 0.30.2
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/api.js +141 -85
- package/api.mjs +141 -85
- package/bin.cjs +29511 -44783
- package/package.json +1 -1
package/api.js
CHANGED
@@ -3469,17 +3469,17 @@ function processCreateParams(params) {
|
|
3469
3469
|
if (errorMap2)
|
3470
3470
|
return { errorMap: errorMap2, description };
|
3471
3471
|
const customMap = (iss, ctx) => {
|
3472
|
-
var
|
3472
|
+
var _a415, _b305;
|
3473
3473
|
const { message } = params;
|
3474
3474
|
if (iss.code === "invalid_enum_value") {
|
3475
3475
|
return { message: message !== null && message !== void 0 ? message : ctx.defaultError };
|
3476
3476
|
}
|
3477
3477
|
if (typeof ctx.data === "undefined") {
|
3478
|
-
return { message: (
|
3478
|
+
return { message: (_a415 = message !== null && message !== void 0 ? message : required_error) !== null && _a415 !== void 0 ? _a415 : ctx.defaultError };
|
3479
3479
|
}
|
3480
3480
|
if (iss.code !== "invalid_type")
|
3481
3481
|
return { message: ctx.defaultError };
|
3482
|
-
return { message: (
|
3482
|
+
return { message: (_b305 = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b305 !== void 0 ? _b305 : ctx.defaultError };
|
3483
3483
|
};
|
3484
3484
|
return { errorMap: customMap, description };
|
3485
3485
|
}
|
@@ -4141,11 +4141,11 @@ var init_lib = __esm({
|
|
4141
4141
|
throw result.error;
|
4142
4142
|
}
|
4143
4143
|
safeParse(data, params) {
|
4144
|
-
var
|
4144
|
+
var _a415;
|
4145
4145
|
const ctx = {
|
4146
4146
|
common: {
|
4147
4147
|
issues: [],
|
4148
|
-
async: (
|
4148
|
+
async: (_a415 = params === null || params === void 0 ? void 0 : params.async) !== null && _a415 !== void 0 ? _a415 : false,
|
4149
4149
|
contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap
|
4150
4150
|
},
|
4151
4151
|
path: (params === null || params === void 0 ? void 0 : params.path) || [],
|
@@ -4467,7 +4467,7 @@ var init_lib = __esm({
|
|
4467
4467
|
} else if (check.kind === "url") {
|
4468
4468
|
try {
|
4469
4469
|
new URL(input.data);
|
4470
|
-
} catch (
|
4470
|
+
} catch (_a415) {
|
4471
4471
|
ctx = this._getOrReturnCtx(input, ctx);
|
4472
4472
|
addIssueToContext(ctx, {
|
4473
4473
|
validation: "url",
|
@@ -4637,7 +4637,7 @@ var init_lib = __esm({
|
|
4637
4637
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
4638
4638
|
}
|
4639
4639
|
datetime(options) {
|
4640
|
-
var
|
4640
|
+
var _a415, _b305;
|
4641
4641
|
if (typeof options === "string") {
|
4642
4642
|
return this._addCheck({
|
4643
4643
|
kind: "datetime",
|
@@ -4650,8 +4650,8 @@ var init_lib = __esm({
|
|
4650
4650
|
return this._addCheck({
|
4651
4651
|
kind: "datetime",
|
4652
4652
|
precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === "undefined" ? null : options === null || options === void 0 ? void 0 : options.precision,
|
4653
|
-
offset: (
|
4654
|
-
local: (
|
4653
|
+
offset: (_a415 = options === null || options === void 0 ? void 0 : options.offset) !== null && _a415 !== void 0 ? _a415 : false,
|
4654
|
+
local: (_b305 = options === null || options === void 0 ? void 0 : options.local) !== null && _b305 !== void 0 ? _b305 : false,
|
4655
4655
|
...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message)
|
4656
4656
|
});
|
4657
4657
|
}
|
@@ -4814,11 +4814,11 @@ var init_lib = __esm({
|
|
4814
4814
|
}
|
4815
4815
|
};
|
4816
4816
|
ZodString.create = (params) => {
|
4817
|
-
var
|
4817
|
+
var _a415;
|
4818
4818
|
return new ZodString({
|
4819
4819
|
checks: [],
|
4820
4820
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
4821
|
-
coerce: (
|
4821
|
+
coerce: (_a415 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a415 !== void 0 ? _a415 : false,
|
4822
4822
|
...processCreateParams(params)
|
4823
4823
|
});
|
4824
4824
|
};
|
@@ -5211,11 +5211,11 @@ var init_lib = __esm({
|
|
5211
5211
|
}
|
5212
5212
|
};
|
5213
5213
|
ZodBigInt.create = (params) => {
|
5214
|
-
var
|
5214
|
+
var _a415;
|
5215
5215
|
return new ZodBigInt({
|
5216
5216
|
checks: [],
|
5217
5217
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
5218
|
-
coerce: (
|
5218
|
+
coerce: (_a415 = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a415 !== void 0 ? _a415 : false,
|
5219
5219
|
...processCreateParams(params)
|
5220
5220
|
});
|
5221
5221
|
};
|
@@ -5695,8 +5695,8 @@ var init_lib = __esm({
|
|
5695
5695
|
unknownKeys: "strict",
|
5696
5696
|
...message !== void 0 ? {
|
5697
5697
|
errorMap: (issue, ctx) => {
|
5698
|
-
var
|
5699
|
-
const defaultError = (_c14 = (
|
5698
|
+
var _a415, _b305, _c14, _d6;
|
5699
|
+
const defaultError = (_c14 = (_b305 = (_a415 = this._def).errorMap) === null || _b305 === void 0 ? void 0 : _b305.call(_a415, issue, ctx).message) !== null && _c14 !== void 0 ? _c14 : ctx.defaultError;
|
5700
5700
|
if (issue.code === "unrecognized_keys")
|
5701
5701
|
return {
|
5702
5702
|
message: (_d6 = errorUtil.errToObj(message).message) !== null && _d6 !== void 0 ? _d6 : defaultError
|
@@ -14273,8 +14273,10 @@ ${BREAKPOINT}ALTER TABLE ${tableNameWithSchema} ADD CONSTRAINT "${statement.newC
|
|
14273
14273
|
return statement.type === "drop_index" && dialect6 === "postgresql";
|
14274
14274
|
}
|
14275
14275
|
convert(statement) {
|
14276
|
+
const { schema: schema5 } = statement;
|
14276
14277
|
const { name: name2 } = PgSquasher.unsquashIdx(statement.data);
|
14277
|
-
|
14278
|
+
const indexNameWithSchema = schema5 ? `"${schema5}"."${name2}"` : `"${name2}"`;
|
14279
|
+
return `DROP INDEX ${indexNameWithSchema};`;
|
14278
14280
|
}
|
14279
14281
|
};
|
14280
14282
|
PgCreateSchemaConvertor = class extends Convertor {
|
@@ -21975,7 +21977,7 @@ var version;
|
|
21975
21977
|
var init_version = __esm({
|
21976
21978
|
"../drizzle-orm/dist/version.js"() {
|
21977
21979
|
"use strict";
|
21978
|
-
version = "0.38.
|
21980
|
+
version = "0.38.4";
|
21979
21981
|
}
|
21980
21982
|
});
|
21981
21983
|
|
@@ -22457,8 +22459,8 @@ var init_sql = __esm({
|
|
22457
22459
|
sql2.param = param2;
|
22458
22460
|
})(sql || (sql = {}));
|
22459
22461
|
((SQL2) => {
|
22460
|
-
var
|
22461
|
-
|
22462
|
+
var _a415;
|
22463
|
+
_a415 = entityKind;
|
22462
22464
|
const _Aliased = class _Aliased {
|
22463
22465
|
constructor(sql2, fieldAlias) {
|
22464
22466
|
/** @internal */
|
@@ -22474,7 +22476,7 @@ var init_sql = __esm({
|
|
22474
22476
|
return new _Aliased(this.sql, this.fieldAlias);
|
22475
22477
|
}
|
22476
22478
|
};
|
22477
|
-
__publicField(_Aliased,
|
22479
|
+
__publicField(_Aliased, _a415, "SQL.Aliased");
|
22478
22480
|
let Aliased = _Aliased;
|
22479
22481
|
SQL2.Aliased = Aliased;
|
22480
22482
|
})(SQL || (SQL = {}));
|
@@ -42146,17 +42148,68 @@ var init_varchar3 = __esm({
|
|
42146
42148
|
}
|
42147
42149
|
});
|
42148
42150
|
|
42151
|
+
// ../drizzle-orm/dist/singlestore-core/columns/vector.js
|
42152
|
+
function vector2(a, b) {
|
42153
|
+
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
42154
|
+
return new SingleStoreVectorBuilder(name2, config);
|
42155
|
+
}
|
42156
|
+
var _a389, _b293, SingleStoreVectorBuilder, _a390, _b294, SingleStoreVector;
|
42157
|
+
var init_vector4 = __esm({
|
42158
|
+
"../drizzle-orm/dist/singlestore-core/columns/vector.js"() {
|
42159
|
+
"use strict";
|
42160
|
+
init_entity();
|
42161
|
+
init_utils2();
|
42162
|
+
init_common5();
|
42163
|
+
SingleStoreVectorBuilder = class extends (_b293 = SingleStoreColumnBuilder, _a389 = entityKind, _b293) {
|
42164
|
+
constructor(name2, config) {
|
42165
|
+
super(name2, "array", "SingleStoreVector");
|
42166
|
+
this.config.dimensions = config.dimensions;
|
42167
|
+
this.config.elementType = config.elementType;
|
42168
|
+
}
|
42169
|
+
/** @internal */
|
42170
|
+
build(table5) {
|
42171
|
+
return new SingleStoreVector(
|
42172
|
+
table5,
|
42173
|
+
this.config
|
42174
|
+
);
|
42175
|
+
}
|
42176
|
+
/** @internal */
|
42177
|
+
generatedAlwaysAs(as, config) {
|
42178
|
+
throw new Error("not implemented");
|
42179
|
+
}
|
42180
|
+
};
|
42181
|
+
__publicField(SingleStoreVectorBuilder, _a389, "SingleStoreVectorBuilder");
|
42182
|
+
SingleStoreVector = class extends (_b294 = SingleStoreColumn, _a390 = entityKind, _b294) {
|
42183
|
+
constructor() {
|
42184
|
+
super(...arguments);
|
42185
|
+
__publicField(this, "dimensions", this.config.dimensions);
|
42186
|
+
__publicField(this, "elementType", this.config.elementType);
|
42187
|
+
}
|
42188
|
+
getSQLType() {
|
42189
|
+
return `vector(${this.dimensions}, ${this.elementType || "F32"})`;
|
42190
|
+
}
|
42191
|
+
mapToDriverValue(value) {
|
42192
|
+
return JSON.stringify(value);
|
42193
|
+
}
|
42194
|
+
mapFromDriverValue(value) {
|
42195
|
+
return JSON.parse(value);
|
42196
|
+
}
|
42197
|
+
};
|
42198
|
+
__publicField(SingleStoreVector, _a390, "SingleStoreVector");
|
42199
|
+
}
|
42200
|
+
});
|
42201
|
+
|
42149
42202
|
// ../drizzle-orm/dist/singlestore-core/columns/year.js
|
42150
42203
|
function year2(name2) {
|
42151
42204
|
return new SingleStoreYearBuilder(name2 ?? "");
|
42152
42205
|
}
|
42153
|
-
var
|
42206
|
+
var _a391, _b295, SingleStoreYearBuilder, _a392, _b296, SingleStoreYear;
|
42154
42207
|
var init_year2 = __esm({
|
42155
42208
|
"../drizzle-orm/dist/singlestore-core/columns/year.js"() {
|
42156
42209
|
"use strict";
|
42157
42210
|
init_entity();
|
42158
42211
|
init_common5();
|
42159
|
-
SingleStoreYearBuilder = class extends (
|
42212
|
+
SingleStoreYearBuilder = class extends (_b295 = SingleStoreColumnBuilder, _a391 = entityKind, _b295) {
|
42160
42213
|
constructor(name2) {
|
42161
42214
|
super(name2, "number", "SingleStoreYear");
|
42162
42215
|
}
|
@@ -42168,13 +42221,13 @@ var init_year2 = __esm({
|
|
42168
42221
|
);
|
42169
42222
|
}
|
42170
42223
|
};
|
42171
|
-
__publicField(SingleStoreYearBuilder,
|
42172
|
-
SingleStoreYear = class extends (
|
42224
|
+
__publicField(SingleStoreYearBuilder, _a391, "SingleStoreYearBuilder");
|
42225
|
+
SingleStoreYear = class extends (_b296 = SingleStoreColumn, _a392 = entityKind, _b296) {
|
42173
42226
|
getSQLType() {
|
42174
42227
|
return `year`;
|
42175
42228
|
}
|
42176
42229
|
};
|
42177
|
-
__publicField(SingleStoreYear,
|
42230
|
+
__publicField(SingleStoreYear, _a392, "SingleStoreYear");
|
42178
42231
|
}
|
42179
42232
|
});
|
42180
42233
|
|
@@ -42206,22 +42259,23 @@ var init_columns4 = __esm({
|
|
42206
42259
|
init_tinyint2();
|
42207
42260
|
init_varbinary2();
|
42208
42261
|
init_varchar3();
|
42262
|
+
init_vector4();
|
42209
42263
|
init_year2();
|
42210
42264
|
}
|
42211
42265
|
});
|
42212
42266
|
|
42213
42267
|
// ../drizzle-orm/dist/singlestore-core/query-builders/count.js
|
42214
|
-
var
|
42268
|
+
var _a393, _b297, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder;
|
42215
42269
|
var init_count4 = __esm({
|
42216
42270
|
"../drizzle-orm/dist/singlestore-core/query-builders/count.js"() {
|
42217
42271
|
"use strict";
|
42218
42272
|
init_entity();
|
42219
42273
|
init_sql();
|
42220
|
-
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL,
|
42274
|
+
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL, _b297 = entityKind, _a393 = Symbol.toStringTag, _c12) {
|
42221
42275
|
constructor(params) {
|
42222
42276
|
super(_SingleStoreCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
42223
42277
|
__publicField(this, "sql");
|
42224
|
-
__publicField(this,
|
42278
|
+
__publicField(this, _a393, "SingleStoreCountBuilder");
|
42225
42279
|
__publicField(this, "session");
|
42226
42280
|
this.params = params;
|
42227
42281
|
this.mapWith(Number);
|
@@ -42259,13 +42313,13 @@ var init_count4 = __esm({
|
|
42259
42313
|
);
|
42260
42314
|
}
|
42261
42315
|
};
|
42262
|
-
__publicField(_SingleStoreCountBuilder,
|
42316
|
+
__publicField(_SingleStoreCountBuilder, _b297, "SingleStoreCountBuilder");
|
42263
42317
|
SingleStoreCountBuilder = _SingleStoreCountBuilder;
|
42264
42318
|
}
|
42265
42319
|
});
|
42266
42320
|
|
42267
42321
|
// ../drizzle-orm/dist/singlestore-core/query-builders/delete.js
|
42268
|
-
var
|
42322
|
+
var _a394, _b298, SingleStoreDeleteBase;
|
42269
42323
|
var init_delete4 = __esm({
|
42270
42324
|
"../drizzle-orm/dist/singlestore-core/query-builders/delete.js"() {
|
42271
42325
|
"use strict";
|
@@ -42273,7 +42327,7 @@ var init_delete4 = __esm({
|
|
42273
42327
|
init_query_promise();
|
42274
42328
|
init_selection_proxy();
|
42275
42329
|
init_table();
|
42276
|
-
SingleStoreDeleteBase = class extends (
|
42330
|
+
SingleStoreDeleteBase = class extends (_b298 = QueryPromise, _a394 = entityKind, _b298) {
|
42277
42331
|
constructor(table5, session, dialect6, withList) {
|
42278
42332
|
super();
|
42279
42333
|
__publicField(this, "config");
|
@@ -42363,12 +42417,12 @@ var init_delete4 = __esm({
|
|
42363
42417
|
return this;
|
42364
42418
|
}
|
42365
42419
|
};
|
42366
|
-
__publicField(SingleStoreDeleteBase,
|
42420
|
+
__publicField(SingleStoreDeleteBase, _a394, "SingleStoreDelete");
|
42367
42421
|
}
|
42368
42422
|
});
|
42369
42423
|
|
42370
42424
|
// ../drizzle-orm/dist/singlestore-core/query-builders/insert.js
|
42371
|
-
var
|
42425
|
+
var _a395, SingleStoreInsertBuilder, _a396, _b299, SingleStoreInsertBase;
|
42372
42426
|
var init_insert4 = __esm({
|
42373
42427
|
"../drizzle-orm/dist/singlestore-core/query-builders/insert.js"() {
|
42374
42428
|
"use strict";
|
@@ -42377,7 +42431,7 @@ var init_insert4 = __esm({
|
|
42377
42431
|
init_sql();
|
42378
42432
|
init_table();
|
42379
42433
|
init_utils2();
|
42380
|
-
|
42434
|
+
_a395 = entityKind;
|
42381
42435
|
SingleStoreInsertBuilder = class {
|
42382
42436
|
constructor(table5, session, dialect6) {
|
42383
42437
|
__publicField(this, "shouldIgnore", false);
|
@@ -42406,8 +42460,8 @@ var init_insert4 = __esm({
|
|
42406
42460
|
return new SingleStoreInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
42407
42461
|
}
|
42408
42462
|
};
|
42409
|
-
__publicField(SingleStoreInsertBuilder,
|
42410
|
-
SingleStoreInsertBase = class extends (
|
42463
|
+
__publicField(SingleStoreInsertBuilder, _a395, "SingleStoreInsertBuilder");
|
42464
|
+
SingleStoreInsertBase = class extends (_b299 = QueryPromise, _a396 = entityKind, _b299) {
|
42411
42465
|
constructor(table5, values, ignore, session, dialect6) {
|
42412
42466
|
super();
|
42413
42467
|
__publicField(this, "config");
|
@@ -42488,7 +42542,7 @@ var init_insert4 = __esm({
|
|
42488
42542
|
return this;
|
42489
42543
|
}
|
42490
42544
|
};
|
42491
|
-
__publicField(SingleStoreInsertBase,
|
42545
|
+
__publicField(SingleStoreInsertBase, _a396, "SingleStoreInsert");
|
42492
42546
|
}
|
42493
42547
|
});
|
42494
42548
|
|
@@ -42521,6 +42575,7 @@ function getSingleStoreColumnBuilders() {
|
|
42521
42575
|
tinyint: tinyint2,
|
42522
42576
|
varbinary: varbinary2,
|
42523
42577
|
varchar: varchar3,
|
42578
|
+
vector: vector2,
|
42524
42579
|
year: year2
|
42525
42580
|
};
|
42526
42581
|
}
|
@@ -42550,6 +42605,7 @@ var init_all4 = __esm({
|
|
42550
42605
|
init_tinyint2();
|
42551
42606
|
init_varbinary2();
|
42552
42607
|
init_varchar3();
|
42608
|
+
init_vector4();
|
42553
42609
|
init_year2();
|
42554
42610
|
}
|
42555
42611
|
});
|
@@ -42574,20 +42630,20 @@ function singlestoreTableWithSchema(name2, columns, extraConfig, schema5, baseNa
|
|
42574
42630
|
}
|
42575
42631
|
return table5;
|
42576
42632
|
}
|
42577
|
-
var
|
42633
|
+
var _a397, _b300, _c13, _d5, SingleStoreTable;
|
42578
42634
|
var init_table5 = __esm({
|
42579
42635
|
"../drizzle-orm/dist/singlestore-core/table.js"() {
|
42580
42636
|
"use strict";
|
42581
42637
|
init_entity();
|
42582
42638
|
init_table();
|
42583
42639
|
init_all4();
|
42584
|
-
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind,
|
42640
|
+
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind, _b300 = Table2.Symbol.Columns, _a397 = Table2.Symbol.ExtraConfigBuilder, _d5) {
|
42585
42641
|
constructor() {
|
42586
42642
|
super(...arguments);
|
42587
42643
|
/** @internal */
|
42588
|
-
__publicField(this,
|
42644
|
+
__publicField(this, _b300);
|
42589
42645
|
/** @internal */
|
42590
|
-
__publicField(this,
|
42646
|
+
__publicField(this, _a397);
|
42591
42647
|
}
|
42592
42648
|
};
|
42593
42649
|
__publicField(SingleStoreTable, _c13, "SingleStoreTable");
|
@@ -42597,7 +42653,7 @@ var init_table5 = __esm({
|
|
42597
42653
|
});
|
42598
42654
|
|
42599
42655
|
// ../drizzle-orm/dist/singlestore-core/dialect.js
|
42600
|
-
var
|
42656
|
+
var _a398, SingleStoreDialect;
|
42601
42657
|
var init_dialect4 = __esm({
|
42602
42658
|
"../drizzle-orm/dist/singlestore-core/dialect.js"() {
|
42603
42659
|
"use strict";
|
@@ -42615,7 +42671,7 @@ var init_dialect4 = __esm({
|
|
42615
42671
|
init_view_common();
|
42616
42672
|
init_common5();
|
42617
42673
|
init_table5();
|
42618
|
-
|
42674
|
+
_a398 = entityKind;
|
42619
42675
|
SingleStoreDialect = class {
|
42620
42676
|
constructor(config) {
|
42621
42677
|
/** @internal */
|
@@ -43180,7 +43236,7 @@ var init_dialect4 = __esm({
|
|
43180
43236
|
};
|
43181
43237
|
}
|
43182
43238
|
};
|
43183
|
-
__publicField(SingleStoreDialect,
|
43239
|
+
__publicField(SingleStoreDialect, _a398, "SingleStoreDialect");
|
43184
43240
|
}
|
43185
43241
|
});
|
43186
43242
|
|
@@ -43202,7 +43258,7 @@ function createSetOperator4(type, isAll) {
|
|
43202
43258
|
return leftSelect.addSetOperators(setOperators);
|
43203
43259
|
};
|
43204
43260
|
}
|
43205
|
-
var
|
43261
|
+
var _a399, SingleStoreSelectBuilder, _a400, _b301, SingleStoreSelectQueryBuilderBase, _a401, _b302, SingleStoreSelectBase, getSingleStoreSetOperators, union4, unionAll4, intersect4, except4, minus;
|
43206
43262
|
var init_select5 = __esm({
|
43207
43263
|
"../drizzle-orm/dist/singlestore-core/query-builders/select.js"() {
|
43208
43264
|
"use strict";
|
@@ -43214,7 +43270,7 @@ var init_select5 = __esm({
|
|
43214
43270
|
init_subquery();
|
43215
43271
|
init_table();
|
43216
43272
|
init_utils2();
|
43217
|
-
|
43273
|
+
_a399 = entityKind;
|
43218
43274
|
SingleStoreSelectBuilder = class {
|
43219
43275
|
constructor(config) {
|
43220
43276
|
__publicField(this, "fields");
|
@@ -43257,8 +43313,8 @@ var init_select5 = __esm({
|
|
43257
43313
|
);
|
43258
43314
|
}
|
43259
43315
|
};
|
43260
|
-
__publicField(SingleStoreSelectBuilder,
|
43261
|
-
SingleStoreSelectQueryBuilderBase = class extends (
|
43316
|
+
__publicField(SingleStoreSelectBuilder, _a399, "SingleStoreSelectBuilder");
|
43317
|
+
SingleStoreSelectQueryBuilderBase = class extends (_b301 = TypedQueryBuilder, _a400 = entityKind, _b301) {
|
43262
43318
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct }) {
|
43263
43319
|
super();
|
43264
43320
|
__publicField(this, "_");
|
@@ -43799,8 +43855,8 @@ var init_select5 = __esm({
|
|
43799
43855
|
return this;
|
43800
43856
|
}
|
43801
43857
|
};
|
43802
|
-
__publicField(SingleStoreSelectQueryBuilderBase,
|
43803
|
-
SingleStoreSelectBase = class extends (
|
43858
|
+
__publicField(SingleStoreSelectQueryBuilderBase, _a400, "SingleStoreSelectQueryBuilder");
|
43859
|
+
SingleStoreSelectBase = class extends (_b302 = SingleStoreSelectQueryBuilderBase, _a401 = entityKind, _b302) {
|
43804
43860
|
constructor() {
|
43805
43861
|
super(...arguments);
|
43806
43862
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -43824,7 +43880,7 @@ var init_select5 = __esm({
|
|
43824
43880
|
return query;
|
43825
43881
|
}
|
43826
43882
|
};
|
43827
|
-
__publicField(SingleStoreSelectBase,
|
43883
|
+
__publicField(SingleStoreSelectBase, _a401, "SingleStoreSelect");
|
43828
43884
|
applyMixins(SingleStoreSelectBase, [QueryPromise]);
|
43829
43885
|
getSingleStoreSetOperators = () => ({
|
43830
43886
|
union: union4,
|
@@ -43842,7 +43898,7 @@ var init_select5 = __esm({
|
|
43842
43898
|
});
|
43843
43899
|
|
43844
43900
|
// ../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js
|
43845
|
-
var
|
43901
|
+
var _a402, QueryBuilder4;
|
43846
43902
|
var init_query_builder5 = __esm({
|
43847
43903
|
"../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js"() {
|
43848
43904
|
"use strict";
|
@@ -43851,7 +43907,7 @@ var init_query_builder5 = __esm({
|
|
43851
43907
|
init_dialect4();
|
43852
43908
|
init_subquery();
|
43853
43909
|
init_select5();
|
43854
|
-
|
43910
|
+
_a402 = entityKind;
|
43855
43911
|
QueryBuilder4 = class {
|
43856
43912
|
constructor(dialect6) {
|
43857
43913
|
__publicField(this, "dialect");
|
@@ -43917,7 +43973,7 @@ var init_query_builder5 = __esm({
|
|
43917
43973
|
return this.dialect;
|
43918
43974
|
}
|
43919
43975
|
};
|
43920
|
-
__publicField(QueryBuilder4,
|
43976
|
+
__publicField(QueryBuilder4, _a402, "SingleStoreQueryBuilder");
|
43921
43977
|
}
|
43922
43978
|
});
|
43923
43979
|
|
@@ -43929,7 +43985,7 @@ var init_select_types4 = __esm({
|
|
43929
43985
|
});
|
43930
43986
|
|
43931
43987
|
// ../drizzle-orm/dist/singlestore-core/query-builders/update.js
|
43932
|
-
var
|
43988
|
+
var _a403, SingleStoreUpdateBuilder, _a404, _b303, SingleStoreUpdateBase;
|
43933
43989
|
var init_update4 = __esm({
|
43934
43990
|
"../drizzle-orm/dist/singlestore-core/query-builders/update.js"() {
|
43935
43991
|
"use strict";
|
@@ -43938,7 +43994,7 @@ var init_update4 = __esm({
|
|
43938
43994
|
init_selection_proxy();
|
43939
43995
|
init_table();
|
43940
43996
|
init_utils2();
|
43941
|
-
|
43997
|
+
_a403 = entityKind;
|
43942
43998
|
SingleStoreUpdateBuilder = class {
|
43943
43999
|
constructor(table5, session, dialect6, withList) {
|
43944
44000
|
this.table = table5;
|
@@ -43956,8 +44012,8 @@ var init_update4 = __esm({
|
|
43956
44012
|
);
|
43957
44013
|
}
|
43958
44014
|
};
|
43959
|
-
__publicField(SingleStoreUpdateBuilder,
|
43960
|
-
SingleStoreUpdateBase = class extends (
|
44015
|
+
__publicField(SingleStoreUpdateBuilder, _a403, "SingleStoreUpdateBuilder");
|
44016
|
+
SingleStoreUpdateBase = class extends (_b303 = QueryPromise, _a404 = entityKind, _b303) {
|
43961
44017
|
constructor(table5, set, session, dialect6, withList) {
|
43962
44018
|
super();
|
43963
44019
|
__publicField(this, "config");
|
@@ -44050,7 +44106,7 @@ var init_update4 = __esm({
|
|
44050
44106
|
return this;
|
44051
44107
|
}
|
44052
44108
|
};
|
44053
|
-
__publicField(SingleStoreUpdateBase,
|
44109
|
+
__publicField(SingleStoreUpdateBase, _a404, "SingleStoreUpdate");
|
44054
44110
|
}
|
44055
44111
|
});
|
44056
44112
|
|
@@ -44068,7 +44124,7 @@ var init_query_builders4 = __esm({
|
|
44068
44124
|
});
|
44069
44125
|
|
44070
44126
|
// ../drizzle-orm/dist/singlestore-core/db.js
|
44071
|
-
var
|
44127
|
+
var _a405, SingleStoreDatabase;
|
44072
44128
|
var init_db4 = __esm({
|
44073
44129
|
"../drizzle-orm/dist/singlestore-core/db.js"() {
|
44074
44130
|
"use strict";
|
@@ -44078,7 +44134,7 @@ var init_db4 = __esm({
|
|
44078
44134
|
init_subquery();
|
44079
44135
|
init_count4();
|
44080
44136
|
init_query_builders4();
|
44081
|
-
|
44137
|
+
_a405 = entityKind;
|
44082
44138
|
SingleStoreDatabase = class {
|
44083
44139
|
constructor(dialect6, session, schema5) {
|
44084
44140
|
// We are waiting for SingleStore support for `json_array` function
|
@@ -44278,17 +44334,17 @@ var init_db4 = __esm({
|
|
44278
44334
|
return this.session.transaction(transaction, config);
|
44279
44335
|
}
|
44280
44336
|
};
|
44281
|
-
__publicField(SingleStoreDatabase,
|
44337
|
+
__publicField(SingleStoreDatabase, _a405, "SingleStoreDatabase");
|
44282
44338
|
}
|
44283
44339
|
});
|
44284
44340
|
|
44285
44341
|
// ../drizzle-orm/dist/singlestore-core/indexes.js
|
44286
|
-
var
|
44342
|
+
var _a406, IndexBuilderOn4, _a407, IndexBuilder4, _a408, Index6;
|
44287
44343
|
var init_indexes4 = __esm({
|
44288
44344
|
"../drizzle-orm/dist/singlestore-core/indexes.js"() {
|
44289
44345
|
"use strict";
|
44290
44346
|
init_entity();
|
44291
|
-
|
44347
|
+
_a406 = entityKind;
|
44292
44348
|
IndexBuilderOn4 = class {
|
44293
44349
|
constructor(name2, unique) {
|
44294
44350
|
this.name = name2;
|
@@ -44298,8 +44354,8 @@ var init_indexes4 = __esm({
|
|
44298
44354
|
return new IndexBuilder4(this.name, columns, this.unique);
|
44299
44355
|
}
|
44300
44356
|
};
|
44301
|
-
__publicField(IndexBuilderOn4,
|
44302
|
-
|
44357
|
+
__publicField(IndexBuilderOn4, _a406, "SingleStoreIndexBuilderOn");
|
44358
|
+
_a407 = entityKind;
|
44303
44359
|
IndexBuilder4 = class {
|
44304
44360
|
constructor(name2, columns, unique) {
|
44305
44361
|
/** @internal */
|
@@ -44327,26 +44383,26 @@ var init_indexes4 = __esm({
|
|
44327
44383
|
return new Index6(this.config, table5);
|
44328
44384
|
}
|
44329
44385
|
};
|
44330
|
-
__publicField(IndexBuilder4,
|
44331
|
-
|
44386
|
+
__publicField(IndexBuilder4, _a407, "SingleStoreIndexBuilder");
|
44387
|
+
_a408 = entityKind;
|
44332
44388
|
Index6 = class {
|
44333
44389
|
constructor(config, table5) {
|
44334
44390
|
__publicField(this, "config");
|
44335
44391
|
this.config = { ...config, table: table5 };
|
44336
44392
|
}
|
44337
44393
|
};
|
44338
|
-
__publicField(Index6,
|
44394
|
+
__publicField(Index6, _a408, "SingleStoreIndex");
|
44339
44395
|
}
|
44340
44396
|
});
|
44341
44397
|
|
44342
44398
|
// ../drizzle-orm/dist/singlestore-core/primary-keys.js
|
44343
|
-
var
|
44399
|
+
var _a409, PrimaryKeyBuilder4, _a410, PrimaryKey4;
|
44344
44400
|
var init_primary_keys4 = __esm({
|
44345
44401
|
"../drizzle-orm/dist/singlestore-core/primary-keys.js"() {
|
44346
44402
|
"use strict";
|
44347
44403
|
init_entity();
|
44348
44404
|
init_table5();
|
44349
|
-
|
44405
|
+
_a409 = entityKind;
|
44350
44406
|
PrimaryKeyBuilder4 = class {
|
44351
44407
|
constructor(columns, name2) {
|
44352
44408
|
/** @internal */
|
@@ -44361,8 +44417,8 @@ var init_primary_keys4 = __esm({
|
|
44361
44417
|
return new PrimaryKey4(table5, this.columns, this.name);
|
44362
44418
|
}
|
44363
44419
|
};
|
44364
|
-
__publicField(PrimaryKeyBuilder4,
|
44365
|
-
|
44420
|
+
__publicField(PrimaryKeyBuilder4, _a409, "SingleStorePrimaryKeyBuilder");
|
44421
|
+
_a410 = entityKind;
|
44366
44422
|
PrimaryKey4 = class {
|
44367
44423
|
constructor(table5, columns, name2) {
|
44368
44424
|
__publicField(this, "columns");
|
@@ -44375,18 +44431,18 @@ var init_primary_keys4 = __esm({
|
|
44375
44431
|
return this.name ?? `${this.table[SingleStoreTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
44376
44432
|
}
|
44377
44433
|
};
|
44378
|
-
__publicField(PrimaryKey4,
|
44434
|
+
__publicField(PrimaryKey4, _a410, "SingleStorePrimaryKey");
|
44379
44435
|
}
|
44380
44436
|
});
|
44381
44437
|
|
44382
44438
|
// ../drizzle-orm/dist/singlestore-core/schema.js
|
44383
|
-
var
|
44439
|
+
var _a411, SingleStoreSchema5;
|
44384
44440
|
var init_schema3 = __esm({
|
44385
44441
|
"../drizzle-orm/dist/singlestore-core/schema.js"() {
|
44386
44442
|
"use strict";
|
44387
44443
|
init_entity();
|
44388
44444
|
init_table5();
|
44389
|
-
|
44445
|
+
_a411 = entityKind;
|
44390
44446
|
SingleStoreSchema5 = class {
|
44391
44447
|
constructor(schemaName) {
|
44392
44448
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -44399,12 +44455,12 @@ var init_schema3 = __esm({
|
|
44399
44455
|
return singlestoreViewWithSchema(name, columns, this.schemaName);
|
44400
44456
|
}) as typeof singlestoreView; */
|
44401
44457
|
};
|
44402
|
-
__publicField(SingleStoreSchema5,
|
44458
|
+
__publicField(SingleStoreSchema5, _a411, "SingleStoreSchema");
|
44403
44459
|
}
|
44404
44460
|
});
|
44405
44461
|
|
44406
44462
|
// ../drizzle-orm/dist/singlestore-core/session.js
|
44407
|
-
var
|
44463
|
+
var _a412, SingleStorePreparedQuery, _a413, SingleStoreSession, _a414, _b304, SingleStoreTransaction;
|
44408
44464
|
var init_session4 = __esm({
|
44409
44465
|
"../drizzle-orm/dist/singlestore-core/session.js"() {
|
44410
44466
|
"use strict";
|
@@ -44412,15 +44468,15 @@ var init_session4 = __esm({
|
|
44412
44468
|
init_errors();
|
44413
44469
|
init_sql();
|
44414
44470
|
init_db4();
|
44415
|
-
|
44471
|
+
_a412 = entityKind;
|
44416
44472
|
SingleStorePreparedQuery = class {
|
44417
44473
|
constructor() {
|
44418
44474
|
/** @internal */
|
44419
44475
|
__publicField(this, "joinsNotNullableMap");
|
44420
44476
|
}
|
44421
44477
|
};
|
44422
|
-
__publicField(SingleStorePreparedQuery,
|
44423
|
-
|
44478
|
+
__publicField(SingleStorePreparedQuery, _a412, "SingleStorePreparedQuery");
|
44479
|
+
_a413 = entityKind;
|
44424
44480
|
SingleStoreSession = class {
|
44425
44481
|
constructor(dialect6) {
|
44426
44482
|
this.dialect = dialect6;
|
@@ -44455,8 +44511,8 @@ var init_session4 = __esm({
|
|
44455
44511
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
44456
44512
|
}
|
44457
44513
|
};
|
44458
|
-
__publicField(SingleStoreSession,
|
44459
|
-
SingleStoreTransaction = class extends (
|
44514
|
+
__publicField(SingleStoreSession, _a413, "SingleStoreSession");
|
44515
|
+
SingleStoreTransaction = class extends (_b304 = SingleStoreDatabase, _a414 = entityKind, _b304) {
|
44460
44516
|
constructor(dialect6, session, schema5, nestedIndex) {
|
44461
44517
|
super(dialect6, session, schema5);
|
44462
44518
|
this.schema = schema5;
|
@@ -44466,7 +44522,7 @@ var init_session4 = __esm({
|
|
44466
44522
|
throw new TransactionRollbackError();
|
44467
44523
|
}
|
44468
44524
|
};
|
44469
|
-
__publicField(SingleStoreTransaction,
|
44525
|
+
__publicField(SingleStoreTransaction, _a414, "SingleStoreTransaction");
|
44470
44526
|
}
|
44471
44527
|
});
|
44472
44528
|
|
@@ -44643,7 +44699,7 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
44643
44699
|
if (typeof column5.default === "string") {
|
44644
44700
|
columnToSet.default = `'${column5.default}'`;
|
44645
44701
|
} else {
|
44646
|
-
if (sqlTypeLowered === "json") {
|
44702
|
+
if (sqlTypeLowered === "json" || Array.isArray(column5.default)) {
|
44647
44703
|
columnToSet.default = `'${JSON.stringify(column5.default)}'`;
|
44648
44704
|
} else if (column5.default instanceof Date) {
|
44649
44705
|
if (sqlTypeLowered === "date") {
|