drizzle-kit 0.30.1 → 0.30.2-0350a59
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 +156 -85
- package/api.mjs +156 -85
- package/bin.cjs +29688 -44961
- 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 = {}));
|
@@ -41845,6 +41847,18 @@ function text4(a, b = {}) {
|
|
41845
41847
|
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41846
41848
|
return new SingleStoreTextBuilder(name2, "text", config);
|
41847
41849
|
}
|
41850
|
+
function tinytext2(a, b = {}) {
|
41851
|
+
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41852
|
+
return new SingleStoreTextBuilder(name2, "tinytext", config);
|
41853
|
+
}
|
41854
|
+
function mediumtext2(a, b = {}) {
|
41855
|
+
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41856
|
+
return new SingleStoreTextBuilder(name2, "mediumtext", config);
|
41857
|
+
}
|
41858
|
+
function longtext2(a, b = {}) {
|
41859
|
+
const { name: name2, config } = getColumnNameAndConfig(a, b);
|
41860
|
+
return new SingleStoreTextBuilder(name2, "longtext", config);
|
41861
|
+
}
|
41848
41862
|
var _a373, _b277, SingleStoreTextBuilder, _a374, _b278, SingleStoreText;
|
41849
41863
|
var init_text4 = __esm({
|
41850
41864
|
"../drizzle-orm/dist/singlestore-core/columns/text.js"() {
|
@@ -42134,17 +42148,68 @@ var init_varchar3 = __esm({
|
|
42134
42148
|
}
|
42135
42149
|
});
|
42136
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
|
+
|
42137
42202
|
// ../drizzle-orm/dist/singlestore-core/columns/year.js
|
42138
42203
|
function year2(name2) {
|
42139
42204
|
return new SingleStoreYearBuilder(name2 ?? "");
|
42140
42205
|
}
|
42141
|
-
var
|
42206
|
+
var _a391, _b295, SingleStoreYearBuilder, _a392, _b296, SingleStoreYear;
|
42142
42207
|
var init_year2 = __esm({
|
42143
42208
|
"../drizzle-orm/dist/singlestore-core/columns/year.js"() {
|
42144
42209
|
"use strict";
|
42145
42210
|
init_entity();
|
42146
42211
|
init_common5();
|
42147
|
-
SingleStoreYearBuilder = class extends (
|
42212
|
+
SingleStoreYearBuilder = class extends (_b295 = SingleStoreColumnBuilder, _a391 = entityKind, _b295) {
|
42148
42213
|
constructor(name2) {
|
42149
42214
|
super(name2, "number", "SingleStoreYear");
|
42150
42215
|
}
|
@@ -42156,13 +42221,13 @@ var init_year2 = __esm({
|
|
42156
42221
|
);
|
42157
42222
|
}
|
42158
42223
|
};
|
42159
|
-
__publicField(SingleStoreYearBuilder,
|
42160
|
-
SingleStoreYear = class extends (
|
42224
|
+
__publicField(SingleStoreYearBuilder, _a391, "SingleStoreYearBuilder");
|
42225
|
+
SingleStoreYear = class extends (_b296 = SingleStoreColumn, _a392 = entityKind, _b296) {
|
42161
42226
|
getSQLType() {
|
42162
42227
|
return `year`;
|
42163
42228
|
}
|
42164
42229
|
};
|
42165
|
-
__publicField(SingleStoreYear,
|
42230
|
+
__publicField(SingleStoreYear, _a392, "SingleStoreYear");
|
42166
42231
|
}
|
42167
42232
|
});
|
42168
42233
|
|
@@ -42194,22 +42259,23 @@ var init_columns4 = __esm({
|
|
42194
42259
|
init_tinyint2();
|
42195
42260
|
init_varbinary2();
|
42196
42261
|
init_varchar3();
|
42262
|
+
init_vector4();
|
42197
42263
|
init_year2();
|
42198
42264
|
}
|
42199
42265
|
});
|
42200
42266
|
|
42201
42267
|
// ../drizzle-orm/dist/singlestore-core/query-builders/count.js
|
42202
|
-
var
|
42268
|
+
var _a393, _b297, _c12, _SingleStoreCountBuilder, SingleStoreCountBuilder;
|
42203
42269
|
var init_count4 = __esm({
|
42204
42270
|
"../drizzle-orm/dist/singlestore-core/query-builders/count.js"() {
|
42205
42271
|
"use strict";
|
42206
42272
|
init_entity();
|
42207
42273
|
init_sql();
|
42208
|
-
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL,
|
42274
|
+
_SingleStoreCountBuilder = class _SingleStoreCountBuilder extends (_c12 = SQL, _b297 = entityKind, _a393 = Symbol.toStringTag, _c12) {
|
42209
42275
|
constructor(params) {
|
42210
42276
|
super(_SingleStoreCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
42211
42277
|
__publicField(this, "sql");
|
42212
|
-
__publicField(this,
|
42278
|
+
__publicField(this, _a393, "SingleStoreCountBuilder");
|
42213
42279
|
__publicField(this, "session");
|
42214
42280
|
this.params = params;
|
42215
42281
|
this.mapWith(Number);
|
@@ -42247,13 +42313,13 @@ var init_count4 = __esm({
|
|
42247
42313
|
);
|
42248
42314
|
}
|
42249
42315
|
};
|
42250
|
-
__publicField(_SingleStoreCountBuilder,
|
42316
|
+
__publicField(_SingleStoreCountBuilder, _b297, "SingleStoreCountBuilder");
|
42251
42317
|
SingleStoreCountBuilder = _SingleStoreCountBuilder;
|
42252
42318
|
}
|
42253
42319
|
});
|
42254
42320
|
|
42255
42321
|
// ../drizzle-orm/dist/singlestore-core/query-builders/delete.js
|
42256
|
-
var
|
42322
|
+
var _a394, _b298, SingleStoreDeleteBase;
|
42257
42323
|
var init_delete4 = __esm({
|
42258
42324
|
"../drizzle-orm/dist/singlestore-core/query-builders/delete.js"() {
|
42259
42325
|
"use strict";
|
@@ -42261,7 +42327,7 @@ var init_delete4 = __esm({
|
|
42261
42327
|
init_query_promise();
|
42262
42328
|
init_selection_proxy();
|
42263
42329
|
init_table();
|
42264
|
-
SingleStoreDeleteBase = class extends (
|
42330
|
+
SingleStoreDeleteBase = class extends (_b298 = QueryPromise, _a394 = entityKind, _b298) {
|
42265
42331
|
constructor(table5, session, dialect6, withList) {
|
42266
42332
|
super();
|
42267
42333
|
__publicField(this, "config");
|
@@ -42351,12 +42417,12 @@ var init_delete4 = __esm({
|
|
42351
42417
|
return this;
|
42352
42418
|
}
|
42353
42419
|
};
|
42354
|
-
__publicField(SingleStoreDeleteBase,
|
42420
|
+
__publicField(SingleStoreDeleteBase, _a394, "SingleStoreDelete");
|
42355
42421
|
}
|
42356
42422
|
});
|
42357
42423
|
|
42358
42424
|
// ../drizzle-orm/dist/singlestore-core/query-builders/insert.js
|
42359
|
-
var
|
42425
|
+
var _a395, SingleStoreInsertBuilder, _a396, _b299, SingleStoreInsertBase;
|
42360
42426
|
var init_insert4 = __esm({
|
42361
42427
|
"../drizzle-orm/dist/singlestore-core/query-builders/insert.js"() {
|
42362
42428
|
"use strict";
|
@@ -42365,7 +42431,7 @@ var init_insert4 = __esm({
|
|
42365
42431
|
init_sql();
|
42366
42432
|
init_table();
|
42367
42433
|
init_utils2();
|
42368
|
-
|
42434
|
+
_a395 = entityKind;
|
42369
42435
|
SingleStoreInsertBuilder = class {
|
42370
42436
|
constructor(table5, session, dialect6) {
|
42371
42437
|
__publicField(this, "shouldIgnore", false);
|
@@ -42394,8 +42460,8 @@ var init_insert4 = __esm({
|
|
42394
42460
|
return new SingleStoreInsertBase(this.table, mappedValues, this.shouldIgnore, this.session, this.dialect);
|
42395
42461
|
}
|
42396
42462
|
};
|
42397
|
-
__publicField(SingleStoreInsertBuilder,
|
42398
|
-
SingleStoreInsertBase = class extends (
|
42463
|
+
__publicField(SingleStoreInsertBuilder, _a395, "SingleStoreInsertBuilder");
|
42464
|
+
SingleStoreInsertBase = class extends (_b299 = QueryPromise, _a396 = entityKind, _b299) {
|
42399
42465
|
constructor(table5, values, ignore, session, dialect6) {
|
42400
42466
|
super();
|
42401
42467
|
__publicField(this, "config");
|
@@ -42476,7 +42542,7 @@ var init_insert4 = __esm({
|
|
42476
42542
|
return this;
|
42477
42543
|
}
|
42478
42544
|
};
|
42479
|
-
__publicField(SingleStoreInsertBase,
|
42545
|
+
__publicField(SingleStoreInsertBase, _a396, "SingleStoreInsert");
|
42480
42546
|
}
|
42481
42547
|
});
|
42482
42548
|
|
@@ -42500,12 +42566,16 @@ function getSingleStoreColumnBuilders() {
|
|
42500
42566
|
real: real4,
|
42501
42567
|
serial: serial3,
|
42502
42568
|
smallint: smallint3,
|
42569
|
+
longtext: longtext2,
|
42570
|
+
mediumtext: mediumtext2,
|
42503
42571
|
text: text4,
|
42572
|
+
tinytext: tinytext2,
|
42504
42573
|
time: time3,
|
42505
42574
|
timestamp: timestamp3,
|
42506
42575
|
tinyint: tinyint2,
|
42507
42576
|
varbinary: varbinary2,
|
42508
42577
|
varchar: varchar3,
|
42578
|
+
vector: vector2,
|
42509
42579
|
year: year2
|
42510
42580
|
};
|
42511
42581
|
}
|
@@ -42535,6 +42605,7 @@ var init_all4 = __esm({
|
|
42535
42605
|
init_tinyint2();
|
42536
42606
|
init_varbinary2();
|
42537
42607
|
init_varchar3();
|
42608
|
+
init_vector4();
|
42538
42609
|
init_year2();
|
42539
42610
|
}
|
42540
42611
|
});
|
@@ -42559,20 +42630,20 @@ function singlestoreTableWithSchema(name2, columns, extraConfig, schema5, baseNa
|
|
42559
42630
|
}
|
42560
42631
|
return table5;
|
42561
42632
|
}
|
42562
|
-
var
|
42633
|
+
var _a397, _b300, _c13, _d5, SingleStoreTable;
|
42563
42634
|
var init_table5 = __esm({
|
42564
42635
|
"../drizzle-orm/dist/singlestore-core/table.js"() {
|
42565
42636
|
"use strict";
|
42566
42637
|
init_entity();
|
42567
42638
|
init_table();
|
42568
42639
|
init_all4();
|
42569
|
-
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind,
|
42640
|
+
SingleStoreTable = class extends (_d5 = Table2, _c13 = entityKind, _b300 = Table2.Symbol.Columns, _a397 = Table2.Symbol.ExtraConfigBuilder, _d5) {
|
42570
42641
|
constructor() {
|
42571
42642
|
super(...arguments);
|
42572
42643
|
/** @internal */
|
42573
|
-
__publicField(this,
|
42644
|
+
__publicField(this, _b300);
|
42574
42645
|
/** @internal */
|
42575
|
-
__publicField(this,
|
42646
|
+
__publicField(this, _a397);
|
42576
42647
|
}
|
42577
42648
|
};
|
42578
42649
|
__publicField(SingleStoreTable, _c13, "SingleStoreTable");
|
@@ -42582,7 +42653,7 @@ var init_table5 = __esm({
|
|
42582
42653
|
});
|
42583
42654
|
|
42584
42655
|
// ../drizzle-orm/dist/singlestore-core/dialect.js
|
42585
|
-
var
|
42656
|
+
var _a398, SingleStoreDialect;
|
42586
42657
|
var init_dialect4 = __esm({
|
42587
42658
|
"../drizzle-orm/dist/singlestore-core/dialect.js"() {
|
42588
42659
|
"use strict";
|
@@ -42600,7 +42671,7 @@ var init_dialect4 = __esm({
|
|
42600
42671
|
init_view_common();
|
42601
42672
|
init_common5();
|
42602
42673
|
init_table5();
|
42603
|
-
|
42674
|
+
_a398 = entityKind;
|
42604
42675
|
SingleStoreDialect = class {
|
42605
42676
|
constructor(config) {
|
42606
42677
|
/** @internal */
|
@@ -43165,7 +43236,7 @@ var init_dialect4 = __esm({
|
|
43165
43236
|
};
|
43166
43237
|
}
|
43167
43238
|
};
|
43168
|
-
__publicField(SingleStoreDialect,
|
43239
|
+
__publicField(SingleStoreDialect, _a398, "SingleStoreDialect");
|
43169
43240
|
}
|
43170
43241
|
});
|
43171
43242
|
|
@@ -43187,7 +43258,7 @@ function createSetOperator4(type, isAll) {
|
|
43187
43258
|
return leftSelect.addSetOperators(setOperators);
|
43188
43259
|
};
|
43189
43260
|
}
|
43190
|
-
var
|
43261
|
+
var _a399, SingleStoreSelectBuilder, _a400, _b301, SingleStoreSelectQueryBuilderBase, _a401, _b302, SingleStoreSelectBase, getSingleStoreSetOperators, union4, unionAll4, intersect4, except4, minus;
|
43191
43262
|
var init_select5 = __esm({
|
43192
43263
|
"../drizzle-orm/dist/singlestore-core/query-builders/select.js"() {
|
43193
43264
|
"use strict";
|
@@ -43199,7 +43270,7 @@ var init_select5 = __esm({
|
|
43199
43270
|
init_subquery();
|
43200
43271
|
init_table();
|
43201
43272
|
init_utils2();
|
43202
|
-
|
43273
|
+
_a399 = entityKind;
|
43203
43274
|
SingleStoreSelectBuilder = class {
|
43204
43275
|
constructor(config) {
|
43205
43276
|
__publicField(this, "fields");
|
@@ -43242,8 +43313,8 @@ var init_select5 = __esm({
|
|
43242
43313
|
);
|
43243
43314
|
}
|
43244
43315
|
};
|
43245
|
-
__publicField(SingleStoreSelectBuilder,
|
43246
|
-
SingleStoreSelectQueryBuilderBase = class extends (
|
43316
|
+
__publicField(SingleStoreSelectBuilder, _a399, "SingleStoreSelectBuilder");
|
43317
|
+
SingleStoreSelectQueryBuilderBase = class extends (_b301 = TypedQueryBuilder, _a400 = entityKind, _b301) {
|
43247
43318
|
constructor({ table: table5, fields, isPartialSelect, session, dialect: dialect6, withList, distinct }) {
|
43248
43319
|
super();
|
43249
43320
|
__publicField(this, "_");
|
@@ -43784,8 +43855,8 @@ var init_select5 = __esm({
|
|
43784
43855
|
return this;
|
43785
43856
|
}
|
43786
43857
|
};
|
43787
|
-
__publicField(SingleStoreSelectQueryBuilderBase,
|
43788
|
-
SingleStoreSelectBase = class extends (
|
43858
|
+
__publicField(SingleStoreSelectQueryBuilderBase, _a400, "SingleStoreSelectQueryBuilder");
|
43859
|
+
SingleStoreSelectBase = class extends (_b302 = SingleStoreSelectQueryBuilderBase, _a401 = entityKind, _b302) {
|
43789
43860
|
constructor() {
|
43790
43861
|
super(...arguments);
|
43791
43862
|
__publicField(this, "execute", (placeholderValues) => {
|
@@ -43809,7 +43880,7 @@ var init_select5 = __esm({
|
|
43809
43880
|
return query;
|
43810
43881
|
}
|
43811
43882
|
};
|
43812
|
-
__publicField(SingleStoreSelectBase,
|
43883
|
+
__publicField(SingleStoreSelectBase, _a401, "SingleStoreSelect");
|
43813
43884
|
applyMixins(SingleStoreSelectBase, [QueryPromise]);
|
43814
43885
|
getSingleStoreSetOperators = () => ({
|
43815
43886
|
union: union4,
|
@@ -43827,7 +43898,7 @@ var init_select5 = __esm({
|
|
43827
43898
|
});
|
43828
43899
|
|
43829
43900
|
// ../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js
|
43830
|
-
var
|
43901
|
+
var _a402, QueryBuilder4;
|
43831
43902
|
var init_query_builder5 = __esm({
|
43832
43903
|
"../drizzle-orm/dist/singlestore-core/query-builders/query-builder.js"() {
|
43833
43904
|
"use strict";
|
@@ -43836,7 +43907,7 @@ var init_query_builder5 = __esm({
|
|
43836
43907
|
init_dialect4();
|
43837
43908
|
init_subquery();
|
43838
43909
|
init_select5();
|
43839
|
-
|
43910
|
+
_a402 = entityKind;
|
43840
43911
|
QueryBuilder4 = class {
|
43841
43912
|
constructor(dialect6) {
|
43842
43913
|
__publicField(this, "dialect");
|
@@ -43902,7 +43973,7 @@ var init_query_builder5 = __esm({
|
|
43902
43973
|
return this.dialect;
|
43903
43974
|
}
|
43904
43975
|
};
|
43905
|
-
__publicField(QueryBuilder4,
|
43976
|
+
__publicField(QueryBuilder4, _a402, "SingleStoreQueryBuilder");
|
43906
43977
|
}
|
43907
43978
|
});
|
43908
43979
|
|
@@ -43914,7 +43985,7 @@ var init_select_types4 = __esm({
|
|
43914
43985
|
});
|
43915
43986
|
|
43916
43987
|
// ../drizzle-orm/dist/singlestore-core/query-builders/update.js
|
43917
|
-
var
|
43988
|
+
var _a403, SingleStoreUpdateBuilder, _a404, _b303, SingleStoreUpdateBase;
|
43918
43989
|
var init_update4 = __esm({
|
43919
43990
|
"../drizzle-orm/dist/singlestore-core/query-builders/update.js"() {
|
43920
43991
|
"use strict";
|
@@ -43923,7 +43994,7 @@ var init_update4 = __esm({
|
|
43923
43994
|
init_selection_proxy();
|
43924
43995
|
init_table();
|
43925
43996
|
init_utils2();
|
43926
|
-
|
43997
|
+
_a403 = entityKind;
|
43927
43998
|
SingleStoreUpdateBuilder = class {
|
43928
43999
|
constructor(table5, session, dialect6, withList) {
|
43929
44000
|
this.table = table5;
|
@@ -43941,8 +44012,8 @@ var init_update4 = __esm({
|
|
43941
44012
|
);
|
43942
44013
|
}
|
43943
44014
|
};
|
43944
|
-
__publicField(SingleStoreUpdateBuilder,
|
43945
|
-
SingleStoreUpdateBase = class extends (
|
44015
|
+
__publicField(SingleStoreUpdateBuilder, _a403, "SingleStoreUpdateBuilder");
|
44016
|
+
SingleStoreUpdateBase = class extends (_b303 = QueryPromise, _a404 = entityKind, _b303) {
|
43946
44017
|
constructor(table5, set, session, dialect6, withList) {
|
43947
44018
|
super();
|
43948
44019
|
__publicField(this, "config");
|
@@ -44035,7 +44106,7 @@ var init_update4 = __esm({
|
|
44035
44106
|
return this;
|
44036
44107
|
}
|
44037
44108
|
};
|
44038
|
-
__publicField(SingleStoreUpdateBase,
|
44109
|
+
__publicField(SingleStoreUpdateBase, _a404, "SingleStoreUpdate");
|
44039
44110
|
}
|
44040
44111
|
});
|
44041
44112
|
|
@@ -44053,7 +44124,7 @@ var init_query_builders4 = __esm({
|
|
44053
44124
|
});
|
44054
44125
|
|
44055
44126
|
// ../drizzle-orm/dist/singlestore-core/db.js
|
44056
|
-
var
|
44127
|
+
var _a405, SingleStoreDatabase;
|
44057
44128
|
var init_db4 = __esm({
|
44058
44129
|
"../drizzle-orm/dist/singlestore-core/db.js"() {
|
44059
44130
|
"use strict";
|
@@ -44063,7 +44134,7 @@ var init_db4 = __esm({
|
|
44063
44134
|
init_subquery();
|
44064
44135
|
init_count4();
|
44065
44136
|
init_query_builders4();
|
44066
|
-
|
44137
|
+
_a405 = entityKind;
|
44067
44138
|
SingleStoreDatabase = class {
|
44068
44139
|
constructor(dialect6, session, schema5) {
|
44069
44140
|
// We are waiting for SingleStore support for `json_array` function
|
@@ -44263,17 +44334,17 @@ var init_db4 = __esm({
|
|
44263
44334
|
return this.session.transaction(transaction, config);
|
44264
44335
|
}
|
44265
44336
|
};
|
44266
|
-
__publicField(SingleStoreDatabase,
|
44337
|
+
__publicField(SingleStoreDatabase, _a405, "SingleStoreDatabase");
|
44267
44338
|
}
|
44268
44339
|
});
|
44269
44340
|
|
44270
44341
|
// ../drizzle-orm/dist/singlestore-core/indexes.js
|
44271
|
-
var
|
44342
|
+
var _a406, IndexBuilderOn4, _a407, IndexBuilder4, _a408, Index6;
|
44272
44343
|
var init_indexes4 = __esm({
|
44273
44344
|
"../drizzle-orm/dist/singlestore-core/indexes.js"() {
|
44274
44345
|
"use strict";
|
44275
44346
|
init_entity();
|
44276
|
-
|
44347
|
+
_a406 = entityKind;
|
44277
44348
|
IndexBuilderOn4 = class {
|
44278
44349
|
constructor(name2, unique) {
|
44279
44350
|
this.name = name2;
|
@@ -44283,8 +44354,8 @@ var init_indexes4 = __esm({
|
|
44283
44354
|
return new IndexBuilder4(this.name, columns, this.unique);
|
44284
44355
|
}
|
44285
44356
|
};
|
44286
|
-
__publicField(IndexBuilderOn4,
|
44287
|
-
|
44357
|
+
__publicField(IndexBuilderOn4, _a406, "SingleStoreIndexBuilderOn");
|
44358
|
+
_a407 = entityKind;
|
44288
44359
|
IndexBuilder4 = class {
|
44289
44360
|
constructor(name2, columns, unique) {
|
44290
44361
|
/** @internal */
|
@@ -44312,26 +44383,26 @@ var init_indexes4 = __esm({
|
|
44312
44383
|
return new Index6(this.config, table5);
|
44313
44384
|
}
|
44314
44385
|
};
|
44315
|
-
__publicField(IndexBuilder4,
|
44316
|
-
|
44386
|
+
__publicField(IndexBuilder4, _a407, "SingleStoreIndexBuilder");
|
44387
|
+
_a408 = entityKind;
|
44317
44388
|
Index6 = class {
|
44318
44389
|
constructor(config, table5) {
|
44319
44390
|
__publicField(this, "config");
|
44320
44391
|
this.config = { ...config, table: table5 };
|
44321
44392
|
}
|
44322
44393
|
};
|
44323
|
-
__publicField(Index6,
|
44394
|
+
__publicField(Index6, _a408, "SingleStoreIndex");
|
44324
44395
|
}
|
44325
44396
|
});
|
44326
44397
|
|
44327
44398
|
// ../drizzle-orm/dist/singlestore-core/primary-keys.js
|
44328
|
-
var
|
44399
|
+
var _a409, PrimaryKeyBuilder4, _a410, PrimaryKey4;
|
44329
44400
|
var init_primary_keys4 = __esm({
|
44330
44401
|
"../drizzle-orm/dist/singlestore-core/primary-keys.js"() {
|
44331
44402
|
"use strict";
|
44332
44403
|
init_entity();
|
44333
44404
|
init_table5();
|
44334
|
-
|
44405
|
+
_a409 = entityKind;
|
44335
44406
|
PrimaryKeyBuilder4 = class {
|
44336
44407
|
constructor(columns, name2) {
|
44337
44408
|
/** @internal */
|
@@ -44346,8 +44417,8 @@ var init_primary_keys4 = __esm({
|
|
44346
44417
|
return new PrimaryKey4(table5, this.columns, this.name);
|
44347
44418
|
}
|
44348
44419
|
};
|
44349
|
-
__publicField(PrimaryKeyBuilder4,
|
44350
|
-
|
44420
|
+
__publicField(PrimaryKeyBuilder4, _a409, "SingleStorePrimaryKeyBuilder");
|
44421
|
+
_a410 = entityKind;
|
44351
44422
|
PrimaryKey4 = class {
|
44352
44423
|
constructor(table5, columns, name2) {
|
44353
44424
|
__publicField(this, "columns");
|
@@ -44360,18 +44431,18 @@ var init_primary_keys4 = __esm({
|
|
44360
44431
|
return this.name ?? `${this.table[SingleStoreTable.Symbol.Name]}_${this.columns.map((column5) => column5.name).join("_")}_pk`;
|
44361
44432
|
}
|
44362
44433
|
};
|
44363
|
-
__publicField(PrimaryKey4,
|
44434
|
+
__publicField(PrimaryKey4, _a410, "SingleStorePrimaryKey");
|
44364
44435
|
}
|
44365
44436
|
});
|
44366
44437
|
|
44367
44438
|
// ../drizzle-orm/dist/singlestore-core/schema.js
|
44368
|
-
var
|
44439
|
+
var _a411, SingleStoreSchema5;
|
44369
44440
|
var init_schema3 = __esm({
|
44370
44441
|
"../drizzle-orm/dist/singlestore-core/schema.js"() {
|
44371
44442
|
"use strict";
|
44372
44443
|
init_entity();
|
44373
44444
|
init_table5();
|
44374
|
-
|
44445
|
+
_a411 = entityKind;
|
44375
44446
|
SingleStoreSchema5 = class {
|
44376
44447
|
constructor(schemaName) {
|
44377
44448
|
__publicField(this, "table", (name2, columns, extraConfig) => {
|
@@ -44384,12 +44455,12 @@ var init_schema3 = __esm({
|
|
44384
44455
|
return singlestoreViewWithSchema(name, columns, this.schemaName);
|
44385
44456
|
}) as typeof singlestoreView; */
|
44386
44457
|
};
|
44387
|
-
__publicField(SingleStoreSchema5,
|
44458
|
+
__publicField(SingleStoreSchema5, _a411, "SingleStoreSchema");
|
44388
44459
|
}
|
44389
44460
|
});
|
44390
44461
|
|
44391
44462
|
// ../drizzle-orm/dist/singlestore-core/session.js
|
44392
|
-
var
|
44463
|
+
var _a412, SingleStorePreparedQuery, _a413, SingleStoreSession, _a414, _b304, SingleStoreTransaction;
|
44393
44464
|
var init_session4 = __esm({
|
44394
44465
|
"../drizzle-orm/dist/singlestore-core/session.js"() {
|
44395
44466
|
"use strict";
|
@@ -44397,15 +44468,15 @@ var init_session4 = __esm({
|
|
44397
44468
|
init_errors();
|
44398
44469
|
init_sql();
|
44399
44470
|
init_db4();
|
44400
|
-
|
44471
|
+
_a412 = entityKind;
|
44401
44472
|
SingleStorePreparedQuery = class {
|
44402
44473
|
constructor() {
|
44403
44474
|
/** @internal */
|
44404
44475
|
__publicField(this, "joinsNotNullableMap");
|
44405
44476
|
}
|
44406
44477
|
};
|
44407
|
-
__publicField(SingleStorePreparedQuery,
|
44408
|
-
|
44478
|
+
__publicField(SingleStorePreparedQuery, _a412, "SingleStorePreparedQuery");
|
44479
|
+
_a413 = entityKind;
|
44409
44480
|
SingleStoreSession = class {
|
44410
44481
|
constructor(dialect6) {
|
44411
44482
|
this.dialect = dialect6;
|
@@ -44440,8 +44511,8 @@ var init_session4 = __esm({
|
|
44440
44511
|
return parts.length ? sql`start transaction ${sql.raw(parts.join(" "))}` : void 0;
|
44441
44512
|
}
|
44442
44513
|
};
|
44443
|
-
__publicField(SingleStoreSession,
|
44444
|
-
SingleStoreTransaction = class extends (
|
44514
|
+
__publicField(SingleStoreSession, _a413, "SingleStoreSession");
|
44515
|
+
SingleStoreTransaction = class extends (_b304 = SingleStoreDatabase, _a414 = entityKind, _b304) {
|
44445
44516
|
constructor(dialect6, session, schema5, nestedIndex) {
|
44446
44517
|
super(dialect6, session, schema5);
|
44447
44518
|
this.schema = schema5;
|
@@ -44451,7 +44522,7 @@ var init_session4 = __esm({
|
|
44451
44522
|
throw new TransactionRollbackError();
|
44452
44523
|
}
|
44453
44524
|
};
|
44454
|
-
__publicField(SingleStoreTransaction,
|
44525
|
+
__publicField(SingleStoreTransaction, _a414, "SingleStoreTransaction");
|
44455
44526
|
}
|
44456
44527
|
});
|
44457
44528
|
|
@@ -44628,7 +44699,7 @@ ${withStyle.errorWarning(`We've found duplicated unique constraint names in ${so
|
|
44628
44699
|
if (typeof column5.default === "string") {
|
44629
44700
|
columnToSet.default = `'${column5.default}'`;
|
44630
44701
|
} else {
|
44631
|
-
if (sqlTypeLowered === "json") {
|
44702
|
+
if (sqlTypeLowered === "json" || Array.isArray(column5.default)) {
|
44632
44703
|
columnToSet.default = `'${JSON.stringify(column5.default)}'`;
|
44633
44704
|
} else if (column5.default instanceof Date) {
|
44634
44705
|
if (sqlTypeLowered === "date") {
|