drizzle-orm 0.26.0 → 0.26.1-c8de0ba
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/aws-data-api/pg/index.cjs +2 -2
- package/aws-data-api/pg/index.d.ts +3 -3
- package/aws-data-api/pg/index.mjs +2 -2
- package/aws-data-api/pg/migrator.cjs.map +1 -1
- package/aws-data-api/pg/migrator.d.ts +4 -4
- package/aws-data-api/pg/migrator.mjs.map +1 -1
- package/better-sqlite3/index.cjs +2 -4
- package/better-sqlite3/index.cjs.map +1 -1
- package/better-sqlite3/index.d.ts +3 -3
- package/better-sqlite3/index.mjs +2 -4
- package/better-sqlite3/index.mjs.map +1 -1
- package/better-sqlite3/migrator.cjs.map +1 -1
- package/better-sqlite3/migrator.d.ts +4 -4
- package/better-sqlite3/migrator.mjs.map +1 -1
- package/bun-sqlite/index.cjs +2 -2
- package/bun-sqlite/index.d.ts +3 -3
- package/bun-sqlite/index.mjs +2 -2
- package/bun-sqlite/migrator.cjs.map +1 -1
- package/bun-sqlite/migrator.d.ts +4 -4
- package/bun-sqlite/migrator.mjs.map +1 -1
- package/d1/index.cjs +2 -2
- package/d1/index.d.ts +3 -3
- package/d1/index.mjs +2 -2
- package/d1/migrator.cjs.map +1 -1
- package/d1/migrator.d.ts +4 -4
- package/d1/migrator.mjs.map +1 -1
- package/{db.d-a2311092.d.ts → db.d-132f4f67.d.ts} +1 -1
- package/{db.d-bc9a1d6c.d.ts → db.d-2eb7c122.d.ts} +1 -1
- package/{driver.d-17ca4c15.d.ts → driver.d-0d0a6cb7.d.ts} +1 -1
- package/{driver.d-b2b94bf9.d.ts → driver.d-19470274.d.ts} +2 -2
- package/{driver.d-e54af17b.d.ts → driver.d-24f23dda.d.ts} +2 -2
- package/{driver.d-300ddb0e.d.ts → driver.d-27ec30dc.d.ts} +2 -2
- package/{driver.d-7fde2e9d.d.ts → driver.d-2880f5a4.d.ts} +2 -2
- package/{driver.d-1fa4589e.d.ts → driver.d-2c6c28d2.d.ts} +2 -2
- package/{driver.d-dea23ee6.d.ts → driver.d-323f603a.d.ts} +1 -1
- package/{driver.d-9d703b84.d.ts → driver.d-4469f445.d.ts} +1 -1
- package/{driver.d-eb490c91.d.ts → driver.d-5c39be67.d.ts} +1 -1
- package/{driver.d-b70ee7ee.d.ts → driver.d-6fb29dde.d.ts} +2 -2
- package/{driver.d-64f2125c.d.ts → driver.d-86800af3.d.ts} +1 -1
- package/{driver.d-ef6fa2df.d.ts → driver.d-c201cb6c.d.ts} +1 -1
- package/{driver.d-45e56643.d.ts → driver.d-f3926c10.d.ts} +2 -2
- package/index.cjs +1 -1
- package/index.d.ts +2 -2
- package/index.mjs +1 -1
- package/libsql/index.cjs +2 -2
- package/libsql/index.d.ts +3 -3
- package/libsql/index.mjs +2 -2
- package/libsql/migrator.cjs.map +1 -1
- package/libsql/migrator.d.ts +4 -4
- package/libsql/migrator.mjs.map +1 -1
- package/mysql-core/index.cjs +2 -2
- package/mysql-core/index.d.ts +3 -3
- package/mysql-core/index.mjs +3 -3
- package/mysql2/index.cjs +2 -2
- package/mysql2/index.d.ts +3 -3
- package/mysql2/index.mjs +2 -2
- package/mysql2/migrator.cjs.map +1 -1
- package/mysql2/migrator.d.ts +4 -4
- package/mysql2/migrator.mjs.map +1 -1
- package/neon-serverless/index.cjs +2 -2
- package/neon-serverless/index.d.ts +3 -3
- package/neon-serverless/index.mjs +2 -2
- package/neon-serverless/migrator.cjs.map +1 -1
- package/neon-serverless/migrator.d.ts +4 -4
- package/neon-serverless/migrator.mjs.map +1 -1
- package/node-postgres/index.cjs +2 -2
- package/node-postgres/index.d.ts +3 -3
- package/node-postgres/index.mjs +2 -2
- package/node-postgres/migrator.cjs.map +1 -1
- package/node-postgres/migrator.d.ts +4 -4
- package/node-postgres/migrator.mjs.map +1 -1
- package/package.json +1 -1
- package/pg-core/index.cjs +2 -2
- package/pg-core/index.d.ts +3 -3
- package/pg-core/index.mjs +3 -3
- package/planetscale-serverless/index.cjs +2 -2
- package/planetscale-serverless/index.d.ts +3 -3
- package/planetscale-serverless/index.mjs +2 -2
- package/planetscale-serverless/migrator.cjs.map +1 -1
- package/planetscale-serverless/migrator.d.ts +4 -4
- package/planetscale-serverless/migrator.mjs.map +1 -1
- package/postgres-js/index.cjs +2 -2
- package/postgres-js/index.d.ts +3 -3
- package/postgres-js/index.mjs +2 -2
- package/postgres-js/migrator.cjs.map +1 -1
- package/postgres-js/migrator.d.ts +4 -4
- package/postgres-js/migrator.mjs.map +1 -1
- package/{query-promise.d-e370e0a9.d.ts → query-promise.d-3b15626b.d.ts} +1 -1
- package/{relations-421f2ba6.cjs → relations-23963f0c.cjs} +90 -81
- package/{relations-421f2ba6.cjs.map → relations-23963f0c.cjs.map} +1 -1
- package/{relations-7adf6be2.mjs → relations-c9e54a8f.mjs} +90 -81
- package/{relations-7adf6be2.mjs.map → relations-c9e54a8f.mjs.map} +1 -1
- package/{select.types.d-ae2f8e44.d.ts → select.types.d-75d13797.d.ts} +1 -1
- package/{session-0ad93aaa.cjs → session-2deccd2c.cjs} +64 -71
- package/session-2deccd2c.cjs.map +1 -0
- package/{session-08a2429e.cjs → session-3ff31b4b.cjs} +2 -2
- package/{session-08a2429e.cjs.map → session-3ff31b4b.cjs.map} +1 -1
- package/{session-f5e916c4.mjs → session-52661b2a.mjs} +2 -2
- package/{session-f5e916c4.mjs.map → session-52661b2a.mjs.map} +1 -1
- package/{session-9698d190.cjs → session-6ac9db37.cjs} +60 -71
- package/session-6ac9db37.cjs.map +1 -0
- package/{session-686f8b9d.mjs → session-dbcddf1b.mjs} +60 -71
- package/session-dbcddf1b.mjs.map +1 -0
- package/{session-6deff015.mjs → session-ee2e06f0.mjs} +64 -71
- package/session-ee2e06f0.mjs.map +1 -0
- package/sql-js/index.cjs +2 -2
- package/sql-js/index.d.ts +3 -3
- package/sql-js/index.mjs +2 -2
- package/sql-js/migrator.cjs.map +1 -1
- package/sql-js/migrator.d.ts +4 -4
- package/sql-js/migrator.mjs.map +1 -1
- package/sqlite-core/index.cjs +2 -2
- package/sqlite-core/index.d.ts +3 -3
- package/sqlite-core/index.mjs +3 -3
- package/sqlite-proxy/index.cjs +2 -2
- package/sqlite-proxy/index.d.ts +4 -4
- package/sqlite-proxy/index.mjs +2 -2
- package/sqlite-proxy/migrator.cjs +3 -2
- package/sqlite-proxy/migrator.cjs.map +1 -1
- package/sqlite-proxy/migrator.d.ts +4 -4
- package/sqlite-proxy/migrator.mjs +3 -2
- package/sqlite-proxy/migrator.mjs.map +1 -1
- package/vercel-postgres/index.cjs +2 -2
- package/vercel-postgres/index.d.ts +3 -3
- package/vercel-postgres/index.mjs +2 -2
- package/vercel-postgres/migrator.cjs.map +1 -1
- package/vercel-postgres/migrator.d.ts +4 -4
- package/vercel-postgres/migrator.mjs.map +1 -1
- package/version.cjs +1 -1
- package/version.d.ts +1 -1
- package/version.mjs +1 -1
- package/session-0ad93aaa.cjs.map +0 -1
- package/session-686f8b9d.mjs.map +0 -1
- package/session-6deff015.mjs.map +0 -1
- package/session-9698d190.cjs.map +0 -1
|
@@ -1538,19 +1538,7 @@ class PgDialect {
|
|
|
1538
1538
|
}));
|
|
1539
1539
|
return {
|
|
1540
1540
|
tableTsKey: tableConfig.tsName,
|
|
1541
|
-
sql:
|
|
1542
|
-
table,
|
|
1543
|
-
fields: {},
|
|
1544
|
-
fieldsFlat: selectionEntries.map(([, c]) => ({
|
|
1545
|
-
path: [c.name],
|
|
1546
|
-
field: c,
|
|
1547
|
-
})),
|
|
1548
|
-
groupBy: [],
|
|
1549
|
-
orderBy: [],
|
|
1550
|
-
joins: [],
|
|
1551
|
-
lockingClauses: [],
|
|
1552
|
-
withList: [],
|
|
1553
|
-
}),
|
|
1541
|
+
sql: table,
|
|
1554
1542
|
selection,
|
|
1555
1543
|
};
|
|
1556
1544
|
}
|
|
@@ -1604,9 +1592,30 @@ class PgDialect {
|
|
|
1604
1592
|
for (const { key, value } of selectedExtras) {
|
|
1605
1593
|
fieldsSelection[key] = value;
|
|
1606
1594
|
}
|
|
1595
|
+
let where;
|
|
1596
|
+
if (config.where) {
|
|
1597
|
+
const whereSql = typeof config.where === 'function' ? config.where(aliasedFields, operators) : config.where;
|
|
1598
|
+
where = whereSql && mapColumnsInSQLToAlias(whereSql, tableAlias);
|
|
1599
|
+
}
|
|
1600
|
+
const groupBy = ((tableConfig.primaryKey.length > 0 && selectedRelations.length < 2)
|
|
1601
|
+
? tableConfig.primaryKey
|
|
1602
|
+
: Object.values(tableConfig.columns)).map((c) => aliasedTableColumn(c, tableAlias));
|
|
1603
|
+
let orderByOrig = typeof config.orderBy === 'function'
|
|
1604
|
+
? config.orderBy(aliasedFields, orderByOperators)
|
|
1605
|
+
: config.orderBy ?? [];
|
|
1606
|
+
if (!Array.isArray(orderByOrig)) {
|
|
1607
|
+
orderByOrig = [orderByOrig];
|
|
1608
|
+
}
|
|
1609
|
+
const orderBy = orderByOrig.map((orderByValue) => {
|
|
1610
|
+
if (orderByValue instanceof Column) {
|
|
1611
|
+
return aliasedTableColumn(orderByValue, tableAlias);
|
|
1612
|
+
}
|
|
1613
|
+
return mapColumnsInSQLToAlias(orderByValue, tableAlias);
|
|
1614
|
+
});
|
|
1607
1615
|
const builtRelations = [];
|
|
1608
|
-
const joins = [];
|
|
1609
1616
|
const builtRelationFields = [];
|
|
1617
|
+
let result;
|
|
1618
|
+
let selectedRelationIndex = 0;
|
|
1610
1619
|
for (const { key: selectedRelationKey, value: selectedRelationValue } of selectedRelations) {
|
|
1611
1620
|
let relation;
|
|
1612
1621
|
for (const [relationKey, relationValue] of Object.entries(tableConfig.relations)) {
|
|
@@ -1623,16 +1632,23 @@ class PgDialect {
|
|
|
1623
1632
|
const relationConfig = schema[tableNamesMap[relation.referencedTable[Table.Symbol.Name]]];
|
|
1624
1633
|
const builtRelation = this.buildRelationalQuery(fullSchema, schema, tableNamesMap, fullSchema[tableNamesMap[relation.referencedTable[Table.Symbol.Name]]], schema[tableNamesMap[relation.referencedTable[Table.Symbol.Name]]], selectedRelationValue, relationAlias, normalizedRelation.references);
|
|
1625
1634
|
builtRelations.push({ key: selectedRelationKey, value: builtRelation });
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1635
|
+
let relationWhere;
|
|
1636
|
+
if (typeof selectedRelationValue === 'object' && selectedRelationValue.limit) {
|
|
1637
|
+
const field = sql `${sql.identifier(relationAlias)}.${sql.identifier('__drizzle_row_number')}`;
|
|
1638
|
+
relationWhere = and(relationWhere, or(and(sql `${field} <= ${selectedRelationValue.limit}`), sql `(${field} is null)`));
|
|
1639
|
+
}
|
|
1640
|
+
const join = {
|
|
1641
|
+
table: builtRelation.sql instanceof Table
|
|
1642
|
+
? aliasedTable(builtRelation.sql, relationAlias)
|
|
1643
|
+
: new Subquery(builtRelation.sql, {}, relationAlias),
|
|
1644
|
+
alias: relationAlias,
|
|
1629
1645
|
on: and(...normalizedRelation.fields.map((field, i) => eq(aliasedTableColumn(field, tableAlias), aliasedTableColumn(normalizedRelation.references[i], relationAlias)))),
|
|
1630
1646
|
joinType: 'left',
|
|
1631
|
-
}
|
|
1647
|
+
};
|
|
1632
1648
|
const relationAliasedColumns = Object.fromEntries(Object.entries(relationConfig.columns).map(([key, value]) => [key, aliasedTableColumn(value, tableAlias)]));
|
|
1633
1649
|
const relationAliasedRelations = Object.fromEntries(Object.entries(relationConfig.relations).map(([key, value]) => [key, aliasedRelation(value, tableAlias)]));
|
|
1634
1650
|
const relationAliasedFields = Object.assign({}, relationAliasedColumns, relationAliasedRelations);
|
|
1635
|
-
let
|
|
1651
|
+
let relationOrderBy;
|
|
1636
1652
|
if (typeof selectedRelationValue === 'object') {
|
|
1637
1653
|
let orderByOrig = typeof selectedRelationValue.orderBy === 'function'
|
|
1638
1654
|
? selectedRelationValue.orderBy(relationAliasedFields, orderByOperators)
|
|
@@ -1640,23 +1656,59 @@ class PgDialect {
|
|
|
1640
1656
|
if (!Array.isArray(orderByOrig)) {
|
|
1641
1657
|
orderByOrig = [orderByOrig];
|
|
1642
1658
|
}
|
|
1643
|
-
|
|
1659
|
+
relationOrderBy = orderByOrig.map((orderByValue) => {
|
|
1644
1660
|
if (orderByValue instanceof Column) {
|
|
1645
1661
|
return aliasedTableColumn(orderByValue, relationAlias);
|
|
1646
1662
|
}
|
|
1647
1663
|
return mapColumnsInSQLToAlias(orderByValue, relationAlias);
|
|
1648
1664
|
});
|
|
1649
1665
|
}
|
|
1650
|
-
const
|
|
1651
|
-
|
|
1652
|
-
|
|
1666
|
+
const relationOrderBySql = relationOrderBy?.length
|
|
1667
|
+
? sql ` order by ${sql.join(relationOrderBy, sql `, `)}`
|
|
1668
|
+
: undefined;
|
|
1669
|
+
const elseField = sql `json_agg(json_build_array(${sql.join(builtRelation.selection.map(({ dbKey: key, isJson }) => {
|
|
1670
|
+
let field = sql `${sql.identifier(relationAlias)}.${sql.identifier(key)}`;
|
|
1671
|
+
if (isJson) {
|
|
1672
|
+
field = sql `${field}::json`;
|
|
1673
|
+
}
|
|
1653
1674
|
return field;
|
|
1654
|
-
}), sql `, `)})${
|
|
1675
|
+
}), sql `, `)})${relationOrderBySql})`;
|
|
1676
|
+
if (selectedRelations.length > 1) {
|
|
1677
|
+
elseField.append(sql.raw('::text'));
|
|
1678
|
+
}
|
|
1655
1679
|
const field = sql `case when count(${sql.join(normalizedRelation.references.map((c) => aliasedTableColumn(c, relationAlias)), sql.raw(' or '))}) = 0 then '[]' else ${elseField} end`.as(selectedRelationKey);
|
|
1656
|
-
|
|
1680
|
+
const builtRelationField = {
|
|
1657
1681
|
path: [selectedRelationKey],
|
|
1658
1682
|
field,
|
|
1683
|
+
};
|
|
1684
|
+
result = this.buildSelectQuery({
|
|
1685
|
+
table: result ? new Subquery(result, {}, tableAlias) : aliasedTable(table, tableAlias),
|
|
1686
|
+
fields: {},
|
|
1687
|
+
fieldsFlat: [
|
|
1688
|
+
{
|
|
1689
|
+
path: [],
|
|
1690
|
+
field: sql `${sql.identifier(tableAlias)}.*`,
|
|
1691
|
+
},
|
|
1692
|
+
...(selectedRelationIndex === selectedRelations.length - 1
|
|
1693
|
+
? selectedExtras.map(({ key, value }) => ({
|
|
1694
|
+
path: [key],
|
|
1695
|
+
field: value,
|
|
1696
|
+
}))
|
|
1697
|
+
: []),
|
|
1698
|
+
builtRelationField,
|
|
1699
|
+
],
|
|
1700
|
+
where: relationWhere,
|
|
1701
|
+
groupBy: [
|
|
1702
|
+
...groupBy,
|
|
1703
|
+
...builtRelationFields.map(({ field }) => sql `${sql.identifier(tableAlias)}.${sql.identifier(field.fieldAlias)}`),
|
|
1704
|
+
],
|
|
1705
|
+
orderBy: selectedRelationIndex === selectedRelations.length - 1 ? orderBy : [],
|
|
1706
|
+
joins: [join],
|
|
1707
|
+
withList: [],
|
|
1708
|
+
lockingClauses: [],
|
|
1659
1709
|
});
|
|
1710
|
+
builtRelationFields.push(builtRelationField);
|
|
1711
|
+
selectedRelationIndex++;
|
|
1660
1712
|
}
|
|
1661
1713
|
const finalFieldsSelection = Object.entries(fieldsSelection).map(([key, value]) => {
|
|
1662
1714
|
return {
|
|
@@ -1664,30 +1716,6 @@ class PgDialect {
|
|
|
1664
1716
|
field: value instanceof Column ? aliasedTableColumn(value, tableAlias) : value,
|
|
1665
1717
|
};
|
|
1666
1718
|
});
|
|
1667
|
-
const initialWhere = and(...selectedRelations.filter(({ key }) => {
|
|
1668
|
-
const relation = config.with?.[key];
|
|
1669
|
-
return typeof relation === 'object' && relation.limit !== undefined;
|
|
1670
|
-
}).map(({ key }) => {
|
|
1671
|
-
const field = sql `${sql.identifier(`${tableAlias}_${key}`)}.${sql.identifier('__drizzle_row_number')}`;
|
|
1672
|
-
const value = config.with?.[key];
|
|
1673
|
-
const cond = or(and(sql `${field} <= ${value.limit}`), sql `(${field} is null)`);
|
|
1674
|
-
return cond;
|
|
1675
|
-
}));
|
|
1676
|
-
const groupBy = (builtRelationFields.length
|
|
1677
|
-
? (tableConfig.primaryKey.length ? tableConfig.primaryKey : Object.values(tableConfig.columns)).map((c) => aliasedTableColumn(c, tableAlias))
|
|
1678
|
-
: []);
|
|
1679
|
-
let orderByOrig = typeof config.orderBy === 'function'
|
|
1680
|
-
? config.orderBy(aliasedFields, orderByOperators)
|
|
1681
|
-
: config.orderBy ?? [];
|
|
1682
|
-
if (!Array.isArray(orderByOrig)) {
|
|
1683
|
-
orderByOrig = [orderByOrig];
|
|
1684
|
-
}
|
|
1685
|
-
const orderBy = orderByOrig.map((orderByValue) => {
|
|
1686
|
-
if (orderByValue instanceof Column) {
|
|
1687
|
-
return aliasedTableColumn(orderByValue, tableAlias);
|
|
1688
|
-
}
|
|
1689
|
-
return mapColumnsInSQLToAlias(orderByValue, tableAlias);
|
|
1690
|
-
});
|
|
1691
1719
|
const finalFieldsFlat = isRoot
|
|
1692
1720
|
? [
|
|
1693
1721
|
...finalFieldsSelection.map(({ path, field }) => ({
|
|
@@ -1696,24 +1724,21 @@ class PgDialect {
|
|
|
1696
1724
|
})),
|
|
1697
1725
|
...builtRelationFields.map(({ path, field }) => ({
|
|
1698
1726
|
path,
|
|
1699
|
-
field: sql `${sql.identifier(field.fieldAlias)}`,
|
|
1727
|
+
field: sql `${sql.identifier(field.fieldAlias)}${selectedRelations.length > 1 ? sql.raw('::json') : undefined}`,
|
|
1700
1728
|
})),
|
|
1701
1729
|
]
|
|
1702
|
-
: [
|
|
1730
|
+
: [
|
|
1731
|
+
{
|
|
1703
1732
|
path: [],
|
|
1704
1733
|
field: sql `${sql.identifier(tableAlias)}.*`,
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
field: value,
|
|
1714
|
-
})),
|
|
1715
|
-
...builtRelationFields,
|
|
1716
|
-
];
|
|
1734
|
+
},
|
|
1735
|
+
...(builtRelationFields.length === 0
|
|
1736
|
+
? selectedExtras.map(({ key, value }) => ({
|
|
1737
|
+
path: [key],
|
|
1738
|
+
field: value,
|
|
1739
|
+
}))
|
|
1740
|
+
: []),
|
|
1741
|
+
];
|
|
1717
1742
|
let limit, offset;
|
|
1718
1743
|
if (config.limit !== undefined || config.offset !== undefined) {
|
|
1719
1744
|
if (isRoot) {
|
|
@@ -1728,24 +1753,8 @@ class PgDialect {
|
|
|
1728
1753
|
});
|
|
1729
1754
|
}
|
|
1730
1755
|
}
|
|
1731
|
-
let result = this.buildSelectQuery({
|
|
1732
|
-
table: aliasedTable(table, tableAlias),
|
|
1733
|
-
fields: {},
|
|
1734
|
-
fieldsFlat: initialFieldsFlat,
|
|
1735
|
-
where: initialWhere,
|
|
1736
|
-
groupBy,
|
|
1737
|
-
orderBy: [],
|
|
1738
|
-
joins,
|
|
1739
|
-
lockingClauses: [],
|
|
1740
|
-
withList: [],
|
|
1741
|
-
});
|
|
1742
|
-
let where;
|
|
1743
|
-
if (config.where) {
|
|
1744
|
-
const whereSql = typeof config.where === 'function' ? config.where(aliasedFields, operators) : config.where;
|
|
1745
|
-
where = whereSql && mapColumnsInSQLToAlias(whereSql, tableAlias);
|
|
1746
|
-
}
|
|
1747
1756
|
result = this.buildSelectQuery({
|
|
1748
|
-
table: new Subquery(result, {}, tableAlias),
|
|
1757
|
+
table: result ? new Subquery(result, {}, tableAlias) : aliasedTable(table, tableAlias),
|
|
1749
1758
|
fields: {},
|
|
1750
1759
|
fieldsFlat: finalFieldsFlat,
|
|
1751
1760
|
where,
|
|
@@ -2951,4 +2960,4 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
2951
2960
|
}
|
|
2952
2961
|
|
|
2953
2962
|
export { name as $, notLike as A, ilike as B, ColumnAliasProxyHandler as C, notIlike as D, asc as E, desc as F, Relation as G, Relations as H, operators as I, orderByOperators as J, extractTablesRelationalConfig as K, relations as L, Many as M, createOne as N, One as O, createMany as P, QueryPromise as Q, RelationTableAliasProxyHandler as R, normalizeRelation as S, TableAliasProxyHandler as T, createTableRelationsHelpers as U, mapRelationalRow as V, FakePrimitiveParam as W, isSQLWrapper as X, StringChunk as Y, SQL as Z, Name as _, aliasedTable as a, PgTimestampStringBuilder as a$, isDriverValueEncoder as a0, noopDecoder as a1, noopEncoder as a2, noopMapper as a3, Param as a4, param as a5, sql as a6, Placeholder as a7, placeholder as a8, fillPlaceholders as a9, pgViewWithSchema as aA, pgMaterializedViewWithSchema as aB, CheckBuilder as aC, Check as aD, check as aE, PgArrayBuilder as aF, PgArray as aG, PgDateBuilder as aH, PgDate as aI, PgDateStringBuilder as aJ, PgDateString as aK, date as aL, PgJsonBuilder as aM, PgJson as aN, json as aO, PgJsonbBuilder as aP, PgJsonb as aQ, jsonb as aR, PgNumericBuilder as aS, PgNumeric as aT, numeric as aU, decimal as aV, PgTimeBuilder as aW, PgTime as aX, time as aY, PgTimestampBuilder as aZ, PgTimestamp as a_, SubqueryConfig as aa, Subquery as ab, WithSubquery as ac, SelectionProxyHandler as ad, TableName as ae, Schema as af, Columns as ag, OriginalName as ah, BaseName as ai, IsAlias as aj, ExtraConfigBuilder as ak, Table as al, isTable as am, getTableName as an, mapResultRow as ao, orderSelectedFields as ap, mapUpdateSet as aq, applyMixins as ar, getTableColumns as as, getTableLikeName as at, ViewBaseConfig as au, View as av, PgDialect as aw, PgColumnBuilder as ax, PgColumn as ay, pgTableWithSchema as az, aliasedRelation as b, PgTimestampString as b0, timestamp as b1, PgUUIDBuilder as b2, PgUUID as b3, uuid as b4, ForeignKeyBuilder as b5, ForeignKey as b6, foreignKey as b7, IndexBuilderOn as b8, IndexBuilder as b9, PgViewBase as bA, PgViewConfig as bB, PgView as bC, PgMaterializedViewConfig as bD, PgMaterializedView as bE, pgView as bF, pgMaterializedView as bG, TypedQueryBuilder as bH, Index as ba, index as bb, uniqueIndex as bc, primaryKey as bd, PrimaryKeyBuilder as be, PrimaryKey as bf, QueryBuilder as bg, PgSelectBuilder as bh, PgSelectQueryBuilder as bi, PgSelect as bj, InlineForeignKeys as bk, PgTable as bl, pgTable as bm, pgTableCreator as bn, getTableConfig as bo, getViewConfig as bp, getMaterializedViewConfig as bq, parsePgNestedArray as br, parsePgArray as bs, makePgArray as bt, DefaultViewBuilderCore as bu, ViewBuilder as bv, ManualViewBuilder as bw, MaterializedViewBuilderCore as bx, MaterializedViewBuilder as by, ManualMaterializedViewBuilder as bz, aliasedTableColumn as c, mapColumnsInSQLToAlias as d, Column as e, ColumnBuilder as f, bindIfParam as g, eq as h, and as i, not as j, gt as k, gte as l, mapColumnsInAliasedSQLToAlias as m, ne as n, or as o, lt as p, lte as q, inArray as r, notInArray as s, isNull as t, isNotNull as u, exists as v, notExists as w, between as x, notBetween as y, like as z };
|
|
2954
|
-
//# sourceMappingURL=relations-
|
|
2963
|
+
//# sourceMappingURL=relations-c9e54a8f.mjs.map
|