drizzle-orm 0.28.5 → 0.28.6-cb76384
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/{alias-a0c6a0a1.mjs → alias-cf8e03cd.mjs} +93 -22
- package/{alias-a0c6a0a1.mjs.map → alias-cf8e03cd.mjs.map} +1 -1
- package/aws-data-api/pg/index.cjs +16 -1
- package/aws-data-api/pg/index.cjs.map +1 -1
- package/aws-data-api/pg/index.mjs +17 -2
- package/aws-data-api/pg/index.mjs.map +1 -1
- package/aws-data-api/pg/session.d.cts +2 -2
- package/aws-data-api/pg/session.d.mts +2 -2
- package/aws-data-api/pg/session.d.ts +2 -2
- package/better-sqlite3/index.cjs +2 -2
- package/better-sqlite3/index.mjs +2 -2
- package/bun-sqlite/index.cjs +2 -2
- package/bun-sqlite/index.mjs +2 -2
- package/d1/index.cjs +2 -2
- package/d1/index.mjs +2 -2
- package/{index-7b32cf4c.cjs → index-1899b9ae.cjs} +113 -52
- package/{index-7b32cf4c.cjs.map → index-1899b9ae.cjs.map} +1 -1
- package/index.cjs +4 -1
- package/index.cjs.map +1 -1
- package/index.mjs +2 -2
- package/libsql/driver.d.cts +13 -1
- package/libsql/driver.d.mts +13 -1
- package/libsql/driver.d.ts +13 -1
- package/libsql/index.cjs +67 -9
- package/libsql/index.cjs.map +1 -1
- package/libsql/index.mjs +66 -9
- package/libsql/index.mjs.map +1 -1
- package/libsql/session.d.cts +4 -5
- package/libsql/session.d.mts +4 -5
- package/libsql/session.d.ts +4 -5
- package/mysql-core/columns/datetime.d.cts +1 -0
- package/mysql-core/columns/datetime.d.mts +1 -0
- package/mysql-core/columns/datetime.d.ts +1 -0
- package/mysql-core/dialect.d.cts +2 -2
- package/mysql-core/dialect.d.mts +2 -2
- package/mysql-core/dialect.d.ts +2 -2
- package/mysql-core/index.cjs +2 -2
- package/mysql-core/index.mjs +7 -4
- package/mysql-core/index.mjs.map +1 -1
- package/mysql-core/query-builders/delete.d.cts +1 -4
- package/mysql-core/query-builders/delete.d.mts +1 -4
- package/mysql-core/query-builders/delete.d.ts +1 -4
- package/mysql-core/query-builders/insert.d.cts +1 -4
- package/mysql-core/query-builders/insert.d.mts +1 -4
- package/mysql-core/query-builders/insert.d.ts +1 -4
- package/mysql-core/query-builders/query.d.cts +3 -0
- package/mysql-core/query-builders/query.d.mts +3 -0
- package/mysql-core/query-builders/query.d.ts +3 -0
- package/mysql-core/query-builders/select.d.cts +1 -4
- package/mysql-core/query-builders/select.d.mts +1 -4
- package/mysql-core/query-builders/select.d.ts +1 -4
- package/mysql-core/query-builders/update.d.cts +1 -4
- package/mysql-core/query-builders/update.d.mts +1 -4
- package/mysql-core/query-builders/update.d.ts +1 -4
- package/mysql2/index.cjs +2 -2
- package/mysql2/index.mjs +2 -2
- package/neon-http/index.cjs +1 -1
- package/neon-http/index.mjs +2 -2
- package/neon-http/migrator.cjs +1 -1
- package/neon-http/migrator.mjs +1 -1
- package/neon-serverless/index.cjs +1 -1
- package/neon-serverless/index.mjs +2 -2
- package/node-postgres/index.cjs +1 -1
- package/node-postgres/index.mjs +2 -2
- package/package.json +1 -1
- package/pg-core/dialect.d.cts +2 -2
- package/pg-core/dialect.d.mts +2 -2
- package/pg-core/dialect.d.ts +2 -2
- package/pg-core/index.cjs +1 -1
- package/pg-core/index.mjs +4 -4
- package/pg-core/index.mjs.map +1 -1
- package/pg-core/query-builders/delete.d.cts +1 -4
- package/pg-core/query-builders/delete.d.mts +1 -4
- package/pg-core/query-builders/delete.d.ts +1 -4
- package/pg-core/query-builders/insert.d.cts +1 -4
- package/pg-core/query-builders/insert.d.mts +1 -4
- package/pg-core/query-builders/insert.d.ts +1 -4
- package/pg-core/query-builders/query.d.cts +3 -0
- package/pg-core/query-builders/query.d.mts +3 -0
- package/pg-core/query-builders/query.d.ts +3 -0
- package/pg-core/query-builders/refresh-materialized-view.d.cts +1 -4
- package/pg-core/query-builders/refresh-materialized-view.d.mts +1 -4
- package/pg-core/query-builders/refresh-materialized-view.d.ts +1 -4
- package/pg-core/query-builders/select.d.cts +1 -4
- package/pg-core/query-builders/select.d.mts +1 -4
- package/pg-core/query-builders/select.d.ts +1 -4
- package/planetscale-serverless/index.cjs +2 -2
- package/planetscale-serverless/index.mjs +2 -2
- package/postgres-js/index.cjs +1 -1
- package/postgres-js/index.mjs +2 -2
- package/relations.d.cts +35 -11
- package/relations.d.mts +35 -11
- package/relations.d.ts +35 -11
- package/{session-97488fcd.mjs → session-6ea797a6.mjs} +19 -32
- package/{session-97488fcd.mjs.map → session-6ea797a6.mjs.map} +1 -1
- package/{session-84b2931b.cjs → session-90f70450.cjs} +163 -78
- package/session-90f70450.cjs.map +1 -0
- package/{session-001d24ad.mjs → session-afae3551.mjs} +77 -14
- package/session-afae3551.mjs.map +1 -0
- package/sql/expressions/conditions.d.cts +70 -0
- package/sql/expressions/conditions.d.mts +70 -0
- package/sql/expressions/conditions.d.ts +70 -0
- package/sql/index.d.cts +3 -1
- package/sql/index.d.mts +3 -1
- package/sql/index.d.ts +3 -1
- package/sql-js/index.cjs +2 -2
- package/sql-js/index.mjs +2 -2
- package/sqlite-core/columns/blob.d.cts +6 -0
- package/sqlite-core/columns/blob.d.mts +6 -0
- package/sqlite-core/columns/blob.d.ts +6 -0
- package/sqlite-core/columns/text.d.cts +29 -5
- package/sqlite-core/columns/text.d.mts +29 -5
- package/sqlite-core/columns/text.d.ts +29 -5
- package/sqlite-core/db.d.cts +6 -5
- package/sqlite-core/db.d.mts +6 -5
- package/sqlite-core/db.d.ts +6 -5
- package/sqlite-core/dialect.d.cts +2 -2
- package/sqlite-core/dialect.d.mts +2 -2
- package/sqlite-core/dialect.d.ts +2 -2
- package/sqlite-core/index.cjs +4 -2
- package/sqlite-core/index.cjs.map +1 -1
- package/sqlite-core/index.mjs +29 -5
- package/sqlite-core/index.mjs.map +1 -1
- package/sqlite-core/query-builders/delete.d.cts +2 -3
- package/sqlite-core/query-builders/delete.d.mts +2 -3
- package/sqlite-core/query-builders/delete.d.ts +2 -3
- package/sqlite-core/query-builders/insert.d.cts +2 -6
- package/sqlite-core/query-builders/insert.d.mts +2 -6
- package/sqlite-core/query-builders/insert.d.ts +2 -6
- package/sqlite-core/query-builders/query.d.cts +4 -2
- package/sqlite-core/query-builders/query.d.mts +4 -2
- package/sqlite-core/query-builders/query.d.ts +4 -2
- package/sqlite-core/query-builders/raw.d.cts +15 -0
- package/sqlite-core/query-builders/raw.d.mts +15 -0
- package/sqlite-core/query-builders/raw.d.ts +15 -0
- package/sqlite-core/query-builders/select.d.cts +1 -5
- package/sqlite-core/query-builders/select.d.mts +1 -5
- package/sqlite-core/query-builders/select.d.ts +1 -5
- package/sqlite-core/query-builders/update.d.cts +3 -7
- package/sqlite-core/query-builders/update.d.mts +3 -7
- package/sqlite-core/query-builders/update.d.ts +3 -7
- package/sqlite-core/session.d.cts +7 -0
- package/sqlite-core/session.d.mts +7 -0
- package/sqlite-core/session.d.ts +7 -0
- package/sqlite-proxy/index.cjs +2 -2
- package/sqlite-proxy/index.mjs +2 -2
- package/sqlite-proxy/migrator.cjs +1 -1
- package/sqlite-proxy/migrator.mjs +1 -1
- package/vercel-postgres/index.cjs +1 -1
- package/vercel-postgres/index.mjs +2 -2
- package/version.cjs +1 -1
- package/version.mjs +1 -1
- package/{view-3fdec7de.mjs → view-23898f21.mjs} +16 -9
- package/{view-3fdec7de.mjs.map → view-23898f21.mjs.map} +1 -1
- package/{view-a7ef2774.cjs → view-975e4aa4.cjs} +20 -10
- package/view-975e4aa4.cjs.map +1 -0
- package/session-001d24ad.mjs.map +0 -1
- package/session-84b2931b.cjs.map +0 -1
- package/view-a7ef2774.cjs.map +0 -1
|
@@ -2931,10 +2931,28 @@ class Many extends Relation {
|
|
|
2931
2931
|
}
|
|
2932
2932
|
function getOperators() {
|
|
2933
2933
|
return {
|
|
2934
|
-
sql,
|
|
2935
|
-
eq,
|
|
2936
2934
|
and,
|
|
2935
|
+
between,
|
|
2936
|
+
eq,
|
|
2937
|
+
exists,
|
|
2938
|
+
gt,
|
|
2939
|
+
gte,
|
|
2940
|
+
ilike,
|
|
2941
|
+
inArray,
|
|
2942
|
+
isNull,
|
|
2943
|
+
isNotNull,
|
|
2944
|
+
like,
|
|
2945
|
+
lt,
|
|
2946
|
+
lte,
|
|
2947
|
+
ne,
|
|
2948
|
+
not,
|
|
2949
|
+
notBetween,
|
|
2950
|
+
notExists,
|
|
2951
|
+
notLike,
|
|
2952
|
+
notIlike,
|
|
2953
|
+
notInArray,
|
|
2937
2954
|
or,
|
|
2955
|
+
sql,
|
|
2938
2956
|
};
|
|
2939
2957
|
}
|
|
2940
2958
|
function getOrderByOperators() {
|
|
@@ -2945,7 +2963,9 @@ function getOrderByOperators() {
|
|
|
2945
2963
|
};
|
|
2946
2964
|
}
|
|
2947
2965
|
function extractTablesRelationalConfig(schema, configHelpers) {
|
|
2948
|
-
if (Object.keys(schema).length === 1
|
|
2966
|
+
if (Object.keys(schema).length === 1
|
|
2967
|
+
&& 'default' in schema
|
|
2968
|
+
&& !is(schema['default'], Table)) {
|
|
2949
2969
|
schema = schema['default'];
|
|
2950
2970
|
}
|
|
2951
2971
|
// table DB name -> schema table key
|
|
@@ -3005,12 +3025,15 @@ function extractTablesRelationalConfig(schema, configHelpers) {
|
|
|
3005
3025
|
return { tables: tablesConfig, tableNamesMap };
|
|
3006
3026
|
}
|
|
3007
3027
|
function relations(table, relations) {
|
|
3008
|
-
return new Relations(table, (helpers) => Object.fromEntries(Object.entries(relations(helpers))
|
|
3009
|
-
|
|
3028
|
+
return new Relations(table, (helpers) => Object.fromEntries(Object.entries(relations(helpers)).map(([key, value]) => [
|
|
3029
|
+
key,
|
|
3030
|
+
value.withFieldName(key),
|
|
3031
|
+
])));
|
|
3010
3032
|
}
|
|
3011
3033
|
function createOne(sourceTable) {
|
|
3012
3034
|
return function one(table, config) {
|
|
3013
|
-
return new One(sourceTable, table, config, (config?.fields.reduce((res, f) => res && f.notNull, true)
|
|
3035
|
+
return new One(sourceTable, table, config, (config?.fields.reduce((res, f) => res && f.notNull, true)
|
|
3036
|
+
?? false));
|
|
3014
3037
|
};
|
|
3015
3038
|
}
|
|
3016
3039
|
function createMany(sourceTable) {
|
|
@@ -3040,9 +3063,11 @@ function normalizeRelation(schema, tableNamesMap, relation) {
|
|
|
3040
3063
|
}
|
|
3041
3064
|
const reverseRelations = [];
|
|
3042
3065
|
for (const referencedTableRelation of Object.values(referencedTableConfig.relations)) {
|
|
3043
|
-
if ((relation.relationName
|
|
3066
|
+
if ((relation.relationName
|
|
3067
|
+
&& relation !== referencedTableRelation
|
|
3044
3068
|
&& referencedTableRelation.relationName === relation.relationName)
|
|
3045
|
-
|| (!relation.relationName
|
|
3069
|
+
|| (!relation.relationName
|
|
3070
|
+
&& referencedTableRelation.referencedTable === relation.sourceTable)) {
|
|
3046
3071
|
reverseRelations.push(referencedTableRelation);
|
|
3047
3072
|
}
|
|
3048
3073
|
}
|
|
@@ -3051,7 +3076,9 @@ function normalizeRelation(schema, tableNamesMap, relation) {
|
|
|
3051
3076
|
? new Error(`There are multiple relations with name "${relation.relationName}" in table "${referencedTableTsName}"`)
|
|
3052
3077
|
: new Error(`There are multiple relations between "${referencedTableTsName}" and "${relation.sourceTable[Table.Symbol.Name]}". Please specify relation name`);
|
|
3053
3078
|
}
|
|
3054
|
-
if (reverseRelations[0]
|
|
3079
|
+
if (reverseRelations[0]
|
|
3080
|
+
&& is(reverseRelations[0], One)
|
|
3081
|
+
&& reverseRelations[0].config) {
|
|
3055
3082
|
return {
|
|
3056
3083
|
fields: reverseRelations[0].config.references,
|
|
3057
3084
|
references: reverseRelations[0].config.fields,
|
|
@@ -3067,11 +3094,13 @@ function createTableRelationsHelpers(sourceTable) {
|
|
|
3067
3094
|
}
|
|
3068
3095
|
function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelection, mapColumnValue = (value) => value) {
|
|
3069
3096
|
const result = {};
|
|
3070
|
-
for (const [selectionItemIndex, selectionItem] of buildQueryResultSelection.entries()) {
|
|
3097
|
+
for (const [selectionItemIndex, selectionItem,] of buildQueryResultSelection.entries()) {
|
|
3071
3098
|
if (selectionItem.isJson) {
|
|
3072
3099
|
const relation = tableConfig.relations[selectionItem.tsKey];
|
|
3073
3100
|
const rawSubRows = row[selectionItemIndex];
|
|
3074
|
-
const subRows = typeof rawSubRows === 'string'
|
|
3101
|
+
const subRows = typeof rawSubRows === 'string'
|
|
3102
|
+
? JSON.parse(rawSubRows)
|
|
3103
|
+
: rawSubRows;
|
|
3075
3104
|
result[selectionItem.tsKey] = is(relation, One)
|
|
3076
3105
|
? subRows
|
|
3077
3106
|
&& mapRelationalRow(tablesConfig, tablesConfig[selectionItem.relationTableTsKey], subRows, selectionItem.selection, mapColumnValue)
|
|
@@ -3097,8 +3126,13 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
3097
3126
|
}
|
|
3098
3127
|
|
|
3099
3128
|
function bindIfParam(value, column) {
|
|
3100
|
-
if (isDriverValueEncoder(column)
|
|
3101
|
-
&& !
|
|
3129
|
+
if (isDriverValueEncoder(column)
|
|
3130
|
+
&& !isSQLWrapper(value)
|
|
3131
|
+
&& !is(value, Param)
|
|
3132
|
+
&& !is(value, Placeholder)
|
|
3133
|
+
&& !is(value, Column)
|
|
3134
|
+
&& !is(value, Table)
|
|
3135
|
+
&& !is(value, View)) {
|
|
3102
3136
|
return new Param(value, column);
|
|
3103
3137
|
}
|
|
3104
3138
|
return value;
|
|
@@ -3153,7 +3187,11 @@ function and(...unfilteredConditions) {
|
|
|
3153
3187
|
if (conditions.length === 1) {
|
|
3154
3188
|
return new SQL(conditions);
|
|
3155
3189
|
}
|
|
3156
|
-
return new SQL([
|
|
3190
|
+
return new SQL([
|
|
3191
|
+
new StringChunk('('),
|
|
3192
|
+
sql.join(conditions, new StringChunk(' and ')),
|
|
3193
|
+
new StringChunk(')'),
|
|
3194
|
+
]);
|
|
3157
3195
|
}
|
|
3158
3196
|
function or(...unfilteredConditions) {
|
|
3159
3197
|
const conditions = unfilteredConditions.filter((c) => c !== undefined);
|
|
@@ -3163,7 +3201,11 @@ function or(...unfilteredConditions) {
|
|
|
3163
3201
|
if (conditions.length === 1) {
|
|
3164
3202
|
return new SQL(conditions);
|
|
3165
3203
|
}
|
|
3166
|
-
return new SQL([
|
|
3204
|
+
return new SQL([
|
|
3205
|
+
new StringChunk('('),
|
|
3206
|
+
sql.join(conditions, new StringChunk(' or ')),
|
|
3207
|
+
new StringChunk(')'),
|
|
3208
|
+
]);
|
|
3167
3209
|
}
|
|
3168
3210
|
/**
|
|
3169
3211
|
* Negate the meaning of an expression using the `not` keyword.
|
|
@@ -3259,12 +3301,9 @@ function inArray(column, values) {
|
|
|
3259
3301
|
return sql `${column} in ${bindIfParam(values, column)}`;
|
|
3260
3302
|
}
|
|
3261
3303
|
function notInArray(column, values) {
|
|
3262
|
-
if (isSQLWrapper(values)) {
|
|
3263
|
-
return sql `${column} not in ${values}`;
|
|
3264
|
-
}
|
|
3265
3304
|
if (Array.isArray(values)) {
|
|
3266
3305
|
if (values.length === 0) {
|
|
3267
|
-
throw new Error('
|
|
3306
|
+
throw new Error('notInArray requires at least one value');
|
|
3268
3307
|
}
|
|
3269
3308
|
return sql `${column} not in ${values.map((v) => bindIfParam(v, column))}`;
|
|
3270
3309
|
}
|
|
@@ -3444,6 +3483,36 @@ function ilike(column, value) {
|
|
|
3444
3483
|
function notIlike(column, value) {
|
|
3445
3484
|
return sql `${column} not ilike ${value}`;
|
|
3446
3485
|
}
|
|
3486
|
+
function arrayContains(column, values) {
|
|
3487
|
+
if (Array.isArray(values)) {
|
|
3488
|
+
if (values.length === 0) {
|
|
3489
|
+
throw new Error('arrayContains requires at least one value');
|
|
3490
|
+
}
|
|
3491
|
+
const array = sql `${bindIfParam(values, column)}`;
|
|
3492
|
+
return sql `${column} @> ${array}`;
|
|
3493
|
+
}
|
|
3494
|
+
return sql `${column} @> ${bindIfParam(values, column)}`;
|
|
3495
|
+
}
|
|
3496
|
+
function arrayContained(column, values) {
|
|
3497
|
+
if (Array.isArray(values)) {
|
|
3498
|
+
if (values.length === 0) {
|
|
3499
|
+
throw new Error('arrayContained requires at least one value');
|
|
3500
|
+
}
|
|
3501
|
+
const array = sql `${bindIfParam(values, column)}`;
|
|
3502
|
+
return sql `${column} <@ ${array}`;
|
|
3503
|
+
}
|
|
3504
|
+
return sql `${column} <@ ${bindIfParam(values, column)}`;
|
|
3505
|
+
}
|
|
3506
|
+
function arrayOverlaps(column, values) {
|
|
3507
|
+
if (Array.isArray(values)) {
|
|
3508
|
+
if (values.length === 0) {
|
|
3509
|
+
throw new Error('arrayOverlaps requires at least one value');
|
|
3510
|
+
}
|
|
3511
|
+
const array = sql `${bindIfParam(values, column)}`;
|
|
3512
|
+
return sql `${column} && ${array}`;
|
|
3513
|
+
}
|
|
3514
|
+
return sql `${column} && ${bindIfParam(values, column)}`;
|
|
3515
|
+
}
|
|
3447
3516
|
|
|
3448
3517
|
/**
|
|
3449
3518
|
* Used in sorting, this specifies that the given
|
|
@@ -3504,7 +3573,9 @@ function mergeQueries(queries) {
|
|
|
3504
3573
|
result.sql += query.sql;
|
|
3505
3574
|
result.params.push(...query.params);
|
|
3506
3575
|
if (query.typings?.length) {
|
|
3507
|
-
|
|
3576
|
+
if (!result.typings) {
|
|
3577
|
+
result.typings = [];
|
|
3578
|
+
}
|
|
3508
3579
|
result.typings.push(...query.typings);
|
|
3509
3580
|
}
|
|
3510
3581
|
}
|
|
@@ -3978,5 +4049,5 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
3978
4049
|
}));
|
|
3979
4050
|
}
|
|
3980
4051
|
|
|
3981
|
-
export { PgArrayBuilder as $, getOrderByOperators as A, normalizeRelation as B, ColumnBuilder as C, DrizzleError as D, and as E, eq as F, aliasedTable as G, applyMixins as H, getTableColumns as I, TypedQueryBuilder as J, getTableLikeName as K, PgColumnBuilder as L, Many as M, PgColumn as N, One as O, PgDialect as P, QueryPromise as Q, pgTableWithSchema as R, SQL as S, Table as T, pgViewWithSchema as U, ViewBaseConfig as V, WithSubquery as W, pgMaterializedViewWithSchema as X, CheckBuilder as Y, Check as Z, check as _, extractTablesRelationalConfig as a, PgView as a$, PgArray as a0, PgDateBuilder as a1, PgDate as a2, PgDateStringBuilder as a3, PgDateString as a4, date as a5, PgJsonBuilder as a6, PgJson as a7, json as a8, PgJsonbBuilder as a9, PrimaryKeyBuilder as aA, PrimaryKey as aB, PgSelectQueryBuilder as aC, PgSelect as aD, InlineForeignKeys as aE, PgTable as aF, pgTable as aG, pgTableCreator as aH, unique as aI, uniqueKeyName as aJ, UniqueConstraintBuilder as aK, UniqueOnConstraintBuilder as aL, UniqueConstraint as aM, getTableConfig as aN, getViewConfig as aO, getMaterializedViewConfig as aP, parsePgNestedArray as aQ, parsePgArray as aR, makePgArray as aS, DefaultViewBuilderCore as aT, ViewBuilder as aU, ManualViewBuilder as aV, MaterializedViewBuilderCore as aW, MaterializedViewBuilder as aX, ManualMaterializedViewBuilder as aY, PgViewBase as aZ, PgViewConfig as a_, PgJsonb as aa, jsonb as ab, PgNumericBuilder as ac, PgNumeric as ad, numeric as ae, decimal as af, PgTimeBuilder as ag, PgTime as ah, time as ai, PgTimestampBuilder as aj, PgTimestamp as ak, PgTimestampStringBuilder as al, PgTimestampString as am, timestamp as an, PgUUIDBuilder as ao, PgUUID as ap, uuid as aq, ForeignKeyBuilder as ar, ForeignKey as as, foreignKey as at, IndexBuilderOn as au, IndexBuilder as av, Index as aw, index as ax, uniqueIndex as ay, primaryKey as az, Param as b, PgMaterializedViewConfig as b0, PgMaterializedView as b1, pgView as b2, pgMaterializedView as b3, ColumnAliasProxyHandler as b4, RelationTableAliasProxyHandler as b5, aliasedRelation as b6, hasOwnEntityKind as b7, bindIfParam as b8, ne as b9,
|
|
3982
|
-
//# sourceMappingURL=alias-
|
|
4052
|
+
export { PgArrayBuilder as $, getOrderByOperators as A, normalizeRelation as B, ColumnBuilder as C, DrizzleError as D, and as E, eq as F, aliasedTable as G, applyMixins as H, getTableColumns as I, TypedQueryBuilder as J, getTableLikeName as K, PgColumnBuilder as L, Many as M, PgColumn as N, One as O, PgDialect as P, QueryPromise as Q, pgTableWithSchema as R, SQL as S, Table as T, pgViewWithSchema as U, ViewBaseConfig as V, WithSubquery as W, pgMaterializedViewWithSchema as X, CheckBuilder as Y, Check as Z, check as _, extractTablesRelationalConfig as a, PgView as a$, PgArray as a0, PgDateBuilder as a1, PgDate as a2, PgDateStringBuilder as a3, PgDateString as a4, date as a5, PgJsonBuilder as a6, PgJson as a7, json as a8, PgJsonbBuilder as a9, PrimaryKeyBuilder as aA, PrimaryKey as aB, PgSelectQueryBuilder as aC, PgSelect as aD, InlineForeignKeys as aE, PgTable as aF, pgTable as aG, pgTableCreator as aH, unique as aI, uniqueKeyName as aJ, UniqueConstraintBuilder as aK, UniqueOnConstraintBuilder as aL, UniqueConstraint as aM, getTableConfig as aN, getViewConfig as aO, getMaterializedViewConfig as aP, parsePgNestedArray as aQ, parsePgArray as aR, makePgArray as aS, DefaultViewBuilderCore as aT, ViewBuilder as aU, ManualViewBuilder as aV, MaterializedViewBuilderCore as aW, MaterializedViewBuilder as aX, ManualMaterializedViewBuilder as aY, PgViewBase as aZ, PgViewConfig as a_, PgJsonb as aa, jsonb as ab, PgNumericBuilder as ac, PgNumeric as ad, numeric as ae, decimal as af, PgTimeBuilder as ag, PgTime as ah, time as ai, PgTimestampBuilder as aj, PgTimestamp as ak, PgTimestampStringBuilder as al, PgTimestampString as am, timestamp as an, PgUUIDBuilder as ao, PgUUID as ap, uuid as aq, ForeignKeyBuilder as ar, ForeignKey as as, foreignKey as at, IndexBuilderOn as au, IndexBuilder as av, Index as aw, index as ax, uniqueIndex as ay, primaryKey as az, Param as b, PgMaterializedViewConfig as b0, PgMaterializedView as b1, pgView as b2, pgMaterializedView as b3, ColumnAliasProxyHandler as b4, RelationTableAliasProxyHandler as b5, aliasedRelation as b6, hasOwnEntityKind as b7, bindIfParam as b8, ne as b9, createOne as bA, createMany as bB, FakePrimitiveParam as bC, isSQLWrapper as bD, StringChunk as bE, Name as bF, name as bG, isDriverValueEncoder as bH, noopDecoder as bI, noopEncoder as bJ, noopMapper as bK, param as bL, Placeholder as bM, placeholder as bN, TableName as bO, Schema as bP, Columns as bQ, OriginalName as bR, BaseName as bS, IsAlias as bT, ExtraConfigBuilder as bU, isTable as bV, iife as bW, or as ba, not as bb, gt as bc, gte as bd, lt as be, lte as bf, inArray as bg, notInArray as bh, isNull as bi, isNotNull as bj, exists as bk, notExists as bl, between as bm, notBetween as bn, like as bo, notLike as bp, ilike as bq, notIlike as br, arrayContains as bs, arrayContained as bt, arrayOverlaps as bu, asc as bv, desc as bw, Relation as bx, Relations as by, relations as bz, createTableRelationsHelpers as c, mapUpdateSet as d, entityKind as e, fillPlaceholders as f, mapRelationalRow as g, QueryBuilder as h, is as i, SelectionProxyHandler as j, PgSelectBuilder as k, TransactionRollbackError as l, mapResultRow as m, TableAliasProxyHandler as n, orderSelectedFields as o, Column as p, getTableName as q, Subquery as r, sql as s, tracer as t, SubqueryConfig as u, View as v, aliasedTableColumn as w, getOperators as x, mapColumnsInSQLToAlias as y, mapColumnsInAliasedSQLToAlias as z };
|
|
4053
|
+
//# sourceMappingURL=alias-cf8e03cd.mjs.map
|