joist-core 2.4.0-next.37 → 2.4.0-next.39
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/build/BaseEntity.d.cts +3 -4
- package/build/BaseEntity.d.cts.map +1 -1
- package/build/BaseEntity.d.mts +3 -4
- package/build/BaseEntity.d.mts.map +1 -1
- package/build/Entity.d.cts +3 -4
- package/build/Entity.d.cts.map +1 -1
- package/build/Entity.d.mts +3 -4
- package/build/Entity.d.mts.map +1 -1
- package/build/EntityFields.d.cts +3 -4
- package/build/EntityFields.d.cts.map +1 -1
- package/build/EntityFields.d.mts +3 -4
- package/build/EntityFields.d.mts.map +1 -1
- package/build/EntityManager.cjs +11 -3
- package/build/EntityManager.cjs.map +1 -1
- package/build/EntityManager.d.cts +47 -41
- package/build/EntityManager.d.cts.map +1 -1
- package/build/EntityManager.d.mts +47 -41
- package/build/EntityManager.d.mts.map +1 -1
- package/build/EntityManager.js +11 -3
- package/build/EntityManager.js.map +1 -1
- package/build/EntityMetadata.d.cts +31 -32
- package/build/EntityMetadata.d.cts.map +1 -1
- package/build/EntityMetadata.d.mts +31 -32
- package/build/EntityMetadata.d.mts.map +1 -1
- package/build/EnumMetadata.d.cts +1 -2
- package/build/EnumMetadata.d.cts.map +1 -1
- package/build/EnumMetadata.d.mts +1 -2
- package/build/EnumMetadata.d.mts.map +1 -1
- package/build/IndexManager.cjs.map +1 -1
- package/build/IndexManager.d.cts +2 -3
- package/build/IndexManager.d.cts.map +1 -1
- package/build/IndexManager.d.mts +2 -3
- package/build/IndexManager.d.mts.map +1 -1
- package/build/IndexManager.js.map +1 -1
- package/build/InstanceData.cjs.map +1 -1
- package/build/InstanceData.d.cts +1 -2
- package/build/InstanceData.d.cts.map +1 -1
- package/build/InstanceData.d.mts +1 -2
- package/build/InstanceData.d.mts.map +1 -1
- package/build/InstanceData.js.map +1 -1
- package/build/PluginManager.cjs.map +1 -1
- package/build/PluginManager.d.cts +4 -4
- package/build/PluginManager.d.cts.map +1 -1
- package/build/PluginManager.d.mts +4 -4
- package/build/PluginManager.d.mts.map +1 -1
- package/build/PluginManager.js.map +1 -1
- package/build/RowData.d.cts +3 -4
- package/build/RowData.d.cts.map +1 -1
- package/build/RowData.d.mts +3 -4
- package/build/RowData.d.mts.map +1 -1
- package/build/batchloaders/BatchLoader.cjs.map +1 -1
- package/build/batchloaders/BatchLoader.d.cts +1 -2
- package/build/batchloaders/BatchLoader.d.cts.map +1 -1
- package/build/batchloaders/BatchLoader.d.mts +1 -2
- package/build/batchloaders/BatchLoader.d.mts.map +1 -1
- package/build/batchloaders/BatchLoader.js.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.d.cts +2 -3
- package/build/batchloaders/enumCollectionBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/enumCollectionBatchLoader.d.mts +2 -3
- package/build/batchloaders/enumCollectionBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/loadBatchLoader.d.cts +2 -3
- package/build/batchloaders/loadBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/loadBatchLoader.d.mts +2 -3
- package/build/batchloaders/loadBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.d.cts +2 -3
- package/build/batchloaders/manyToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/manyToManyBatchLoader.d.mts +2 -3
- package/build/batchloaders/manyToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.d.cts +2 -3
- package/build/batchloaders/oneToManyBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToManyBatchLoader.d.mts +2 -3
- package/build/batchloaders/oneToManyBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.d.cts +2 -3
- package/build/batchloaders/oneToOneBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/oneToOneBatchLoader.d.mts +2 -3
- package/build/batchloaders/oneToOneBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/populateBatchLoader.d.cts +2 -3
- package/build/batchloaders/populateBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/populateBatchLoader.d.mts +2 -3
- package/build/batchloaders/populateBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveChildrenBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveChildrenBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveM2mBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveM2mBatchLoader.d.mts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts +2 -3
- package/build/batchloaders/recursiveParentsBatchLoader.d.cts.map +1 -1
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts +2 -3
- package/build/batchloaders/recursiveParentsBatchLoader.d.mts.map +1 -1
- package/build/changes.cjs.map +1 -1
- package/build/changes.d.cts +9 -10
- package/build/changes.d.cts.map +1 -1
- package/build/changes.d.mts +9 -10
- package/build/changes.d.mts.map +1 -1
- package/build/changes.js.map +1 -1
- package/build/config.d.cts +17 -17
- package/build/config.d.cts.map +1 -1
- package/build/config.d.mts +17 -17
- package/build/config.d.mts.map +1 -1
- package/build/configure.d.cts +8 -9
- package/build/configure.d.cts.map +1 -1
- package/build/configure.d.mts +8 -9
- package/build/configure.d.mts.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.d.cts +1 -2
- package/build/dataloaders/fastWhereFilterHash.d.cts.map +1 -1
- package/build/dataloaders/fastWhereFilterHash.d.mts +1 -2
- package/build/dataloaders/fastWhereFilterHash.d.mts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.d.cts +2 -3
- package/build/dataloaders/findByUniqueDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findByUniqueDataLoader.d.mts +2 -3
- package/build/dataloaders/findByUniqueDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findCountDataLoader.d.cts +4 -5
- package/build/dataloaders/findCountDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findCountDataLoader.d.mts +4 -5
- package/build/dataloaders/findCountDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findDataLoader.d.cts +11 -12
- package/build/dataloaders/findDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findDataLoader.d.mts +11 -12
- package/build/dataloaders/findDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findIdsDataLoader.d.cts +2 -3
- package/build/dataloaders/findIdsDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findIdsDataLoader.d.mts +2 -3
- package/build/dataloaders/findIdsDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.cts +3 -3
- package/build/dataloaders/findOrCreateDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findOrCreateDataLoader.d.mts +3 -3
- package/build/dataloaders/findOrCreateDataLoader.d.mts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.cts +1 -2
- package/build/dataloaders/findPaginatedDataLoader.d.cts.map +1 -1
- package/build/dataloaders/findPaginatedDataLoader.d.mts +1 -2
- package/build/dataloaders/findPaginatedDataLoader.d.mts.map +1 -1
- package/build/dataloaders/lensDataLoader.d.cts +2 -3
- package/build/dataloaders/lensDataLoader.d.cts.map +1 -1
- package/build/dataloaders/lensDataLoader.d.mts +2 -3
- package/build/dataloaders/lensDataLoader.d.mts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.cts +2 -3
- package/build/dataloaders/manyToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/manyToManyFindDataLoader.d.mts +2 -3
- package/build/dataloaders/manyToManyFindDataLoader.d.mts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.cts +2 -3
- package/build/dataloaders/oneToManyFindDataLoader.d.cts.map +1 -1
- package/build/dataloaders/oneToManyFindDataLoader.d.mts +2 -3
- package/build/dataloaders/oneToManyFindDataLoader.d.mts.map +1 -1
- package/build/defaults.cjs.map +1 -1
- package/build/defaults.d.cts +7 -7
- package/build/defaults.d.cts.map +1 -1
- package/build/defaults.d.mts +7 -7
- package/build/defaults.d.mts.map +1 -1
- package/build/defaults.js.map +1 -1
- package/build/drivers/Driver.d.cts +2 -3
- package/build/drivers/Driver.d.cts.map +1 -1
- package/build/drivers/Driver.d.mts +2 -3
- package/build/drivers/Driver.d.mts.map +1 -1
- package/build/drivers/EntityWriter.d.cts +7 -7
- package/build/drivers/EntityWriter.d.cts.map +1 -1
- package/build/drivers/EntityWriter.d.mts +7 -7
- package/build/drivers/EntityWriter.d.mts.map +1 -1
- package/build/drivers/IdAssigner.cjs.map +1 -1
- package/build/drivers/IdAssigner.d.cts +5 -5
- package/build/drivers/IdAssigner.d.cts.map +1 -1
- package/build/drivers/IdAssigner.d.mts +5 -5
- package/build/drivers/IdAssigner.d.mts.map +1 -1
- package/build/drivers/IdAssigner.js.map +1 -1
- package/build/drivers/driverApi.d.cts +2 -3
- package/build/drivers/driverApi.d.cts.map +1 -1
- package/build/drivers/driverApi.d.mts +2 -3
- package/build/drivers/driverApi.d.mts.map +1 -1
- package/build/fields.d.cts +6 -7
- package/build/fields.d.cts.map +1 -1
- package/build/fields.d.mts +6 -7
- package/build/fields.d.mts.map +1 -1
- package/build/flush/FlushLock.cjs.map +1 -1
- package/build/flush/FlushLock.d.cts +1 -2
- package/build/flush/FlushLock.d.cts.map +1 -1
- package/build/flush/FlushLock.d.mts +1 -2
- package/build/flush/FlushLock.d.mts.map +1 -1
- package/build/flush/FlushLock.js.map +1 -1
- package/build/flush/JoinRows.cjs.map +1 -1
- package/build/flush/JoinRows.d.cts +5 -6
- package/build/flush/JoinRows.d.cts.map +1 -1
- package/build/flush/JoinRows.d.mts +5 -6
- package/build/flush/JoinRows.d.mts.map +1 -1
- package/build/flush/JoinRows.js.map +1 -1
- package/build/flush/PendingChanges.d.cts +5 -6
- package/build/flush/PendingChanges.d.cts.map +1 -1
- package/build/flush/PendingChanges.d.mts +5 -6
- package/build/flush/PendingChanges.d.mts.map +1 -1
- package/build/flush/Todo.d.cts +5 -6
- package/build/flush/Todo.d.cts.map +1 -1
- package/build/flush/Todo.d.mts +5 -6
- package/build/flush/Todo.d.mts.map +1 -1
- package/build/getProperties.d.cts +3 -4
- package/build/getProperties.d.cts.map +1 -1
- package/build/getProperties.d.mts +3 -4
- package/build/getProperties.d.mts.map +1 -1
- package/build/index.d.cts +17 -17
- package/build/index.d.cts.map +1 -1
- package/build/index.d.mts +17 -17
- package/build/index.d.mts.map +1 -1
- package/build/json.d.cts +11 -11
- package/build/json.d.cts.map +1 -1
- package/build/json.d.mts +11 -11
- package/build/json.d.mts.map +1 -1
- package/build/keys.d.cts +27 -27
- package/build/keys.d.cts.map +1 -1
- package/build/keys.d.mts +27 -27
- package/build/keys.d.mts.map +1 -1
- package/build/loading/HintTree.d.cts +3 -4
- package/build/loading/HintTree.d.cts.map +1 -1
- package/build/loading/HintTree.d.mts +3 -4
- package/build/loading/HintTree.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.cjs.map +1 -1
- package/build/loading/IsLoadedCache.d.cts +2 -3
- package/build/loading/IsLoadedCache.d.cts.map +1 -1
- package/build/loading/IsLoadedCache.d.mts +2 -3
- package/build/loading/IsLoadedCache.d.mts.map +1 -1
- package/build/loading/IsLoadedCache.js.map +1 -1
- package/build/loading/loadHints.d.cts +17 -17
- package/build/loading/loadHints.d.cts.map +1 -1
- package/build/loading/loadHints.d.mts +17 -17
- package/build/loading/loadHints.d.mts.map +1 -1
- package/build/loading/loadLens.d.cts +13 -13
- package/build/loading/loadLens.d.cts.map +1 -1
- package/build/loading/loadLens.d.mts +13 -13
- package/build/loading/loadLens.d.mts.map +1 -1
- package/build/loading/withLoaded.d.cts +5 -6
- package/build/loading/withLoaded.d.cts.map +1 -1
- package/build/loading/withLoaded.d.mts +5 -6
- package/build/loading/withLoaded.d.mts.map +1 -1
- package/build/logging/FactoryLogger.d.cts +3 -4
- package/build/logging/FactoryLogger.d.cts.map +1 -1
- package/build/logging/FactoryLogger.d.mts +3 -4
- package/build/logging/FactoryLogger.d.mts.map +1 -1
- package/build/logging/FieldLogger.cjs.map +1 -1
- package/build/logging/FieldLogger.d.cts +4 -5
- package/build/logging/FieldLogger.d.cts.map +1 -1
- package/build/logging/FieldLogger.d.mts +4 -5
- package/build/logging/FieldLogger.d.mts.map +1 -1
- package/build/logging/FieldLogger.js.map +1 -1
- package/build/logging/ReactionLogger.d.cts +7 -7
- package/build/logging/ReactionLogger.d.cts.map +1 -1
- package/build/logging/ReactionLogger.d.mts +7 -7
- package/build/logging/ReactionLogger.d.mts.map +1 -1
- package/build/newEntity.cjs.map +1 -1
- package/build/newEntity.d.cts +4 -5
- package/build/newEntity.d.cts.map +1 -1
- package/build/newEntity.d.mts +4 -5
- package/build/newEntity.d.mts.map +1 -1
- package/build/newEntity.js.map +1 -1
- package/build/newTestInstance.d.cts +21 -21
- package/build/newTestInstance.d.cts.map +1 -1
- package/build/newTestInstance.d.mts +21 -21
- package/build/newTestInstance.d.mts.map +1 -1
- package/build/normalizeHints.d.cts +7 -8
- package/build/normalizeHints.d.cts.map +1 -1
- package/build/normalizeHints.d.mts +7 -8
- package/build/normalizeHints.d.mts.map +1 -1
- package/build/nowUTC.d.cts +4 -5
- package/build/nowUTC.d.cts.map +1 -1
- package/build/nowUTC.d.mts +4 -5
- package/build/nowUTC.d.mts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.cts +1 -2
- package/build/plugins/ImmutableEntitiesPlugin.d.cts.map +1 -1
- package/build/plugins/ImmutableEntitiesPlugin.d.mts +1 -2
- package/build/plugins/ImmutableEntitiesPlugin.d.mts.map +1 -1
- package/build/plugins/PreloadPlugin.d.cts +3 -4
- package/build/plugins/PreloadPlugin.d.cts.map +1 -1
- package/build/plugins/PreloadPlugin.d.mts +3 -4
- package/build/plugins/PreloadPlugin.d.mts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.d.cts +1 -2
- package/build/preloading/JsonAggregatePreloader.d.cts.map +1 -1
- package/build/preloading/JsonAggregatePreloader.d.mts +1 -2
- package/build/preloading/JsonAggregatePreloader.d.mts.map +1 -1
- package/build/preloading/canPreload.d.cts +1 -2
- package/build/preloading/canPreload.d.cts.map +1 -1
- package/build/preloading/canPreload.d.mts +1 -2
- package/build/preloading/canPreload.d.mts.map +1 -1
- package/build/preloading/partitionHint.d.cts +1 -2
- package/build/preloading/partitionHint.d.cts.map +1 -1
- package/build/preloading/partitionHint.d.mts +1 -2
- package/build/preloading/partitionHint.d.mts.map +1 -1
- package/build/queries/ConditionBuilder.d.cts +2 -2
- package/build/queries/ConditionBuilder.d.cts.map +1 -1
- package/build/queries/ConditionBuilder.d.mts +2 -2
- package/build/queries/ConditionBuilder.d.mts.map +1 -1
- package/build/queries/conditions.d.cts +11 -12
- package/build/queries/conditions.d.cts.map +1 -1
- package/build/queries/conditions.d.mts +11 -12
- package/build/queries/conditions.d.mts.map +1 -1
- package/build/queries/entityQueryUtils.d.cts +4 -5
- package/build/queries/entityQueryUtils.d.cts.map +1 -1
- package/build/queries/entityQueryUtils.d.mts +4 -5
- package/build/queries/entityQueryUtils.d.mts.map +1 -1
- package/build/queries/find/Aliases.d.cts +16 -16
- package/build/queries/find/Aliases.d.cts.map +1 -1
- package/build/queries/find/Aliases.d.mts +16 -16
- package/build/queries/find/Aliases.d.mts.map +1 -1
- package/build/queries/find/DeferredAlias.d.cts +5 -6
- package/build/queries/find/DeferredAlias.d.cts.map +1 -1
- package/build/queries/find/DeferredAlias.d.mts +5 -6
- package/build/queries/find/DeferredAlias.d.mts.map +1 -1
- package/build/queries/find/EntityFilter.d.cts +12 -13
- package/build/queries/find/EntityFilter.d.cts.map +1 -1
- package/build/queries/find/EntityFilter.d.mts +12 -13
- package/build/queries/find/EntityFilter.d.mts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.d.cts +8 -9
- package/build/queries/find/EntityGraphQLFilter.d.cts.map +1 -1
- package/build/queries/find/EntityGraphQLFilter.d.mts +8 -9
- package/build/queries/find/EntityGraphQLFilter.d.mts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.cts +1 -2
- package/build/queries/find/QueryParser.collectionJoins.d.cts.map +1 -1
- package/build/queries/find/QueryParser.collectionJoins.d.mts +1 -2
- package/build/queries/find/QueryParser.collectionJoins.d.mts.map +1 -1
- package/build/queries/find/QueryParser.d.cts +18 -18
- package/build/queries/find/QueryParser.d.cts.map +1 -1
- package/build/queries/find/QueryParser.d.mts +18 -18
- package/build/queries/find/QueryParser.d.mts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.cts +2 -3
- package/build/queries/find/QueryParser.pruning.d.cts.map +1 -1
- package/build/queries/find/QueryParser.pruning.d.mts +2 -3
- package/build/queries/find/QueryParser.pruning.d.mts.map +1 -1
- package/build/queries/find/QueryVisitor.d.cts +4 -4
- package/build/queries/find/QueryVisitor.d.cts.map +1 -1
- package/build/queries/find/QueryVisitor.d.mts +4 -4
- package/build/queries/find/QueryVisitor.d.mts.map +1 -1
- package/build/queries/find/buildFindQuery.d.cts +3 -3
- package/build/queries/find/buildFindQuery.d.cts.map +1 -1
- package/build/queries/find/buildFindQuery.d.mts +3 -3
- package/build/queries/find/buildFindQuery.d.mts.map +1 -1
- package/build/queries/find/scopes.cjs.map +1 -1
- package/build/queries/find/scopes.d.cts +12 -13
- package/build/queries/find/scopes.d.cts.map +1 -1
- package/build/queries/find/scopes.d.mts +12 -13
- package/build/queries/find/scopes.d.mts.map +1 -1
- package/build/queries/find/scopes.js.map +1 -1
- package/build/queries/parsedConditions.d.cts +7 -8
- package/build/queries/parsedConditions.d.cts.map +1 -1
- package/build/queries/parsedConditions.d.mts +7 -8
- package/build/queries/parsedConditions.d.mts.map +1 -1
- package/build/queries/renderConditions.d.cts +3 -4
- package/build/queries/renderConditions.d.cts.map +1 -1
- package/build/queries/renderConditions.d.mts +3 -4
- package/build/queries/renderConditions.d.mts.map +1 -1
- package/build/queries/skipCondition.d.cts +1 -2
- package/build/queries/skipCondition.d.cts.map +1 -1
- package/build/queries/skipCondition.d.mts +1 -2
- package/build/queries/skipCondition.d.mts.map +1 -1
- package/build/queries/sql/AliasAssigner.cjs.map +1 -1
- package/build/queries/sql/AliasAssigner.d.cts +1 -2
- package/build/queries/sql/AliasAssigner.d.cts.map +1 -1
- package/build/queries/sql/AliasAssigner.d.mts +1 -2
- package/build/queries/sql/AliasAssigner.d.mts.map +1 -1
- package/build/queries/sql/AliasAssigner.js.map +1 -1
- package/build/queries/sql/Expr.d.cts +26 -27
- package/build/queries/sql/Expr.d.cts.map +1 -1
- package/build/queries/sql/Expr.d.mts +26 -27
- package/build/queries/sql/Expr.d.mts.map +1 -1
- package/build/queries/sql/JoinTree.d.cts +5 -5
- package/build/queries/sql/JoinTree.d.cts.map +1 -1
- package/build/queries/sql/JoinTree.d.mts +5 -5
- package/build/queries/sql/JoinTree.d.mts.map +1 -1
- package/build/queries/sql/Tables.d.cts +39 -39
- package/build/queries/sql/Tables.d.cts.map +1 -1
- package/build/queries/sql/Tables.d.mts +39 -39
- package/build/queries/sql/Tables.d.mts.map +1 -1
- package/build/queries/sql/custom.d.cts +14 -14
- package/build/queries/sql/custom.d.cts.map +1 -1
- package/build/queries/sql/custom.d.mts +14 -14
- package/build/queries/sql/custom.d.mts.map +1 -1
- package/build/queries/sql/execute.d.cts +15 -15
- package/build/queries/sql/execute.d.cts.map +1 -1
- package/build/queries/sql/execute.d.mts +15 -15
- package/build/queries/sql/execute.d.mts.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.d.cts +5 -6
- package/build/queries/sql/expressions/arrayAgg.d.cts.map +1 -1
- package/build/queries/sql/expressions/arrayAgg.d.mts +5 -6
- package/build/queries/sql/expressions/arrayAgg.d.mts.map +1 -1
- package/build/queries/sql/expressions/case.d.cts +10 -10
- package/build/queries/sql/expressions/case.d.cts.map +1 -1
- package/build/queries/sql/expressions/case.d.mts +10 -10
- package/build/queries/sql/expressions/case.d.mts.map +1 -1
- package/build/queries/sql/expressions/coalesce.d.cts +5 -6
- package/build/queries/sql/expressions/coalesce.d.cts.map +1 -1
- package/build/queries/sql/expressions/coalesce.d.mts +5 -6
- package/build/queries/sql/expressions/coalesce.d.mts.map +1 -1
- package/build/queries/sql/expressions/codecs.d.cts +1 -2
- package/build/queries/sql/expressions/codecs.d.cts.map +1 -1
- package/build/queries/sql/expressions/codecs.d.mts +1 -2
- package/build/queries/sql/expressions/codecs.d.mts.map +1 -1
- package/build/queries/sql/expressions/expression.d.cts +6 -6
- package/build/queries/sql/expressions/expression.d.cts.map +1 -1
- package/build/queries/sql/expressions/expression.d.mts +6 -6
- package/build/queries/sql/expressions/expression.d.mts.map +1 -1
- package/build/queries/sql/expressions/greatest.d.cts +5 -6
- package/build/queries/sql/expressions/greatest.d.cts.map +1 -1
- package/build/queries/sql/expressions/greatest.d.mts +5 -6
- package/build/queries/sql/expressions/greatest.d.mts.map +1 -1
- package/build/queries/sql/expressions/least.d.cts +5 -6
- package/build/queries/sql/expressions/least.d.cts.map +1 -1
- package/build/queries/sql/expressions/least.d.mts +5 -6
- package/build/queries/sql/expressions/least.d.mts.map +1 -1
- package/build/queries/sql/expressions/nullIf.d.cts +5 -6
- package/build/queries/sql/expressions/nullIf.d.cts.map +1 -1
- package/build/queries/sql/expressions/nullIf.d.mts +5 -6
- package/build/queries/sql/expressions/nullIf.d.mts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.d.cts +5 -6
- package/build/queries/sql/expressions/parseExpression.d.cts.map +1 -1
- package/build/queries/sql/expressions/parseExpression.d.mts +5 -6
- package/build/queries/sql/expressions/parseExpression.d.mts.map +1 -1
- package/build/queries/sql/expressions/types.d.cts +11 -11
- package/build/queries/sql/expressions/types.d.cts.map +1 -1
- package/build/queries/sql/expressions/types.d.mts +11 -11
- package/build/queries/sql/expressions/types.d.mts.map +1 -1
- package/build/queries/sql/keywords.d.cts +4 -5
- package/build/queries/sql/keywords.d.cts.map +1 -1
- package/build/queries/sql/keywords.d.mts +4 -5
- package/build/queries/sql/keywords.d.mts.map +1 -1
- package/build/queries/sql/query.cjs.map +1 -1
- package/build/queries/sql/query.d.cts +67 -67
- package/build/queries/sql/query.d.cts.map +1 -1
- package/build/queries/sql/query.d.mts +67 -67
- package/build/queries/sql/query.d.mts.map +1 -1
- package/build/queries/sql/query.js.map +1 -1
- package/build/queries/unnest.d.cts +2 -3
- package/build/queries/unnest.d.cts.map +1 -1
- package/build/queries/unnest.d.mts +2 -3
- package/build/queries/unnest.d.mts.map +1 -1
- package/build/queries/valueFilters.d.cts +5 -6
- package/build/queries/valueFilters.d.cts.map +1 -1
- package/build/queries/valueFilters.d.mts +5 -6
- package/build/queries/valueFilters.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.cjs.map +1 -1
- package/build/reactivity/ReactionsManager.d.cts +2 -3
- package/build/reactivity/ReactionsManager.d.cts.map +1 -1
- package/build/reactivity/ReactionsManager.d.mts +2 -3
- package/build/reactivity/ReactionsManager.d.mts.map +1 -1
- package/build/reactivity/ReactionsManager.js.map +1 -1
- package/build/reactivity/reactiveHints.d.cts +18 -18
- package/build/reactivity/reactiveHints.d.cts.map +1 -1
- package/build/reactivity/reactiveHints.d.mts +18 -18
- package/build/reactivity/reactiveHints.d.mts.map +1 -1
- package/build/relations/AbstractPropertyImpl.cjs.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.cts +1 -2
- package/build/relations/AbstractPropertyImpl.d.cts.map +1 -1
- package/build/relations/AbstractPropertyImpl.d.mts +1 -2
- package/build/relations/AbstractPropertyImpl.d.mts.map +1 -1
- package/build/relations/AbstractPropertyImpl.js.map +1 -1
- package/build/relations/AbstractRelationImpl.d.cts +1 -2
- package/build/relations/AbstractRelationImpl.d.cts.map +1 -1
- package/build/relations/AbstractRelationImpl.d.mts +1 -2
- package/build/relations/AbstractRelationImpl.d.mts.map +1 -1
- package/build/relations/AsyncProperty.cjs.map +1 -1
- package/build/relations/AsyncProperty.d.cts +5 -6
- package/build/relations/AsyncProperty.d.cts.map +1 -1
- package/build/relations/AsyncProperty.d.mts +5 -6
- package/build/relations/AsyncProperty.d.mts.map +1 -1
- package/build/relations/AsyncProperty.js.map +1 -1
- package/build/relations/AsyncReactiveField.cjs.map +1 -1
- package/build/relations/AsyncReactiveField.d.cts +4 -5
- package/build/relations/AsyncReactiveField.d.cts.map +1 -1
- package/build/relations/AsyncReactiveField.d.mts +4 -5
- package/build/relations/AsyncReactiveField.d.mts.map +1 -1
- package/build/relations/AsyncReactiveField.js.map +1 -1
- package/build/relations/Collection.d.cts +4 -5
- package/build/relations/Collection.d.cts.map +1 -1
- package/build/relations/Collection.d.mts +4 -5
- package/build/relations/Collection.d.mts.map +1 -1
- package/build/relations/CustomCollection.cjs.map +1 -1
- package/build/relations/CustomCollection.d.cts +3 -4
- package/build/relations/CustomCollection.d.cts.map +1 -1
- package/build/relations/CustomCollection.d.mts +3 -4
- package/build/relations/CustomCollection.d.mts.map +1 -1
- package/build/relations/CustomCollection.js.map +1 -1
- package/build/relations/CustomReference.cjs.map +1 -1
- package/build/relations/CustomReference.d.cts +3 -4
- package/build/relations/CustomReference.d.cts.map +1 -1
- package/build/relations/CustomReference.d.mts +3 -4
- package/build/relations/CustomReference.d.mts.map +1 -1
- package/build/relations/CustomReference.js.map +1 -1
- package/build/relations/EnumCollection.cjs.map +1 -1
- package/build/relations/EnumCollection.d.cts +5 -5
- package/build/relations/EnumCollection.d.cts.map +1 -1
- package/build/relations/EnumCollection.d.mts +5 -5
- package/build/relations/EnumCollection.d.mts.map +1 -1
- package/build/relations/EnumCollection.js.map +1 -1
- package/build/relations/LargeCollection.d.cts +1 -2
- package/build/relations/LargeCollection.d.cts.map +1 -1
- package/build/relations/LargeCollection.d.mts +1 -2
- package/build/relations/LargeCollection.d.mts.map +1 -1
- package/build/relations/LazyField.cjs.map +1 -1
- package/build/relations/LazyField.d.cts +7 -8
- package/build/relations/LazyField.d.cts.map +1 -1
- package/build/relations/LazyField.d.mts +7 -8
- package/build/relations/LazyField.d.mts.map +1 -1
- package/build/relations/LazyField.js.map +1 -1
- package/build/relations/ManyToManyCollection.cjs.map +1 -1
- package/build/relations/ManyToManyCollection.d.cts +2 -3
- package/build/relations/ManyToManyCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyCollection.d.mts +2 -3
- package/build/relations/ManyToManyCollection.d.mts.map +1 -1
- package/build/relations/ManyToManyCollection.js.map +1 -1
- package/build/relations/ManyToManyLargeCollection.d.cts +2 -3
- package/build/relations/ManyToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/ManyToManyLargeCollection.d.mts +2 -3
- package/build/relations/ManyToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/ManyToOneReference.cjs.map +1 -1
- package/build/relations/ManyToOneReference.d.cts +6 -7
- package/build/relations/ManyToOneReference.d.cts.map +1 -1
- package/build/relations/ManyToOneReference.d.mts +6 -7
- package/build/relations/ManyToOneReference.d.mts.map +1 -1
- package/build/relations/ManyToOneReference.js.map +1 -1
- package/build/relations/OneToManyCollection.cjs.map +1 -1
- package/build/relations/OneToManyCollection.d.cts +2 -3
- package/build/relations/OneToManyCollection.d.cts.map +1 -1
- package/build/relations/OneToManyCollection.d.mts +2 -3
- package/build/relations/OneToManyCollection.d.mts.map +1 -1
- package/build/relations/OneToManyCollection.js.map +1 -1
- package/build/relations/OneToManyLargeCollection.cjs.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.cts +2 -3
- package/build/relations/OneToManyLargeCollection.d.cts.map +1 -1
- package/build/relations/OneToManyLargeCollection.d.mts +2 -3
- package/build/relations/OneToManyLargeCollection.d.mts.map +1 -1
- package/build/relations/OneToManyLargeCollection.js.map +1 -1
- package/build/relations/OneToOneReference.cjs.map +1 -1
- package/build/relations/OneToOneReference.d.cts +7 -7
- package/build/relations/OneToOneReference.d.cts.map +1 -1
- package/build/relations/OneToOneReference.d.mts +7 -7
- package/build/relations/OneToOneReference.d.mts.map +1 -1
- package/build/relations/OneToOneReference.js.map +1 -1
- package/build/relations/PolymorphicReference.cjs.map +1 -1
- package/build/relations/PolymorphicReference.d.cts +4 -5
- package/build/relations/PolymorphicReference.d.cts.map +1 -1
- package/build/relations/PolymorphicReference.d.mts +4 -5
- package/build/relations/PolymorphicReference.d.mts.map +1 -1
- package/build/relations/PolymorphicReference.js.map +1 -1
- package/build/relations/PropertySymbols.d.cts +1 -2
- package/build/relations/PropertySymbols.d.cts.map +1 -1
- package/build/relations/PropertySymbols.d.mts +1 -2
- package/build/relations/PropertySymbols.d.mts.map +1 -1
- package/build/relations/ReactiveField.cjs.map +1 -1
- package/build/relations/ReactiveField.d.cts +4 -5
- package/build/relations/ReactiveField.d.cts.map +1 -1
- package/build/relations/ReactiveField.d.mts +4 -5
- package/build/relations/ReactiveField.d.mts.map +1 -1
- package/build/relations/ReactiveField.js.map +1 -1
- package/build/relations/ReactiveGetter.cjs.map +1 -1
- package/build/relations/ReactiveGetter.d.cts +4 -5
- package/build/relations/ReactiveGetter.d.cts.map +1 -1
- package/build/relations/ReactiveGetter.d.mts +4 -5
- package/build/relations/ReactiveGetter.d.mts.map +1 -1
- package/build/relations/ReactiveGetter.js.map +1 -1
- package/build/relations/ReactiveManyToMany.cjs.map +1 -1
- package/build/relations/ReactiveManyToMany.d.cts +4 -5
- package/build/relations/ReactiveManyToMany.d.cts.map +1 -1
- package/build/relations/ReactiveManyToMany.d.mts +4 -5
- package/build/relations/ReactiveManyToMany.d.mts.map +1 -1
- package/build/relations/ReactiveManyToMany.js.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.cjs.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.cts +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.d.cts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.d.mts +4 -5
- package/build/relations/ReactiveManyToManyOtherSide.d.mts.map +1 -1
- package/build/relations/ReactiveManyToManyOtherSide.js.map +1 -1
- package/build/relations/ReactiveReference.cjs.map +1 -1
- package/build/relations/ReactiveReference.d.cts +5 -6
- package/build/relations/ReactiveReference.d.cts.map +1 -1
- package/build/relations/ReactiveReference.d.mts +5 -6
- package/build/relations/ReactiveReference.d.mts.map +1 -1
- package/build/relations/ReactiveReference.js.map +1 -1
- package/build/relations/ReadOnlyCollection.d.cts +4 -5
- package/build/relations/ReadOnlyCollection.d.cts.map +1 -1
- package/build/relations/ReadOnlyCollection.d.mts +4 -5
- package/build/relations/ReadOnlyCollection.d.mts.map +1 -1
- package/build/relations/RecursiveCollection.cjs.map +1 -1
- package/build/relations/RecursiveCollection.d.cts +10 -10
- package/build/relations/RecursiveCollection.d.cts.map +1 -1
- package/build/relations/RecursiveCollection.d.mts +10 -10
- package/build/relations/RecursiveCollection.d.mts.map +1 -1
- package/build/relations/RecursiveCollection.js.map +1 -1
- package/build/relations/RecursiveCycleError.d.cts +2 -2
- package/build/relations/RecursiveCycleError.d.cts.map +1 -1
- package/build/relations/RecursiveCycleError.d.mts +2 -2
- package/build/relations/RecursiveCycleError.d.mts.map +1 -1
- package/build/relations/Reference.d.cts +5 -5
- package/build/relations/Reference.d.cts.map +1 -1
- package/build/relations/Reference.d.mts +5 -5
- package/build/relations/Reference.d.mts.map +1 -1
- package/build/relations/ReferenceSymbols.d.cts +1 -2
- package/build/relations/ReferenceSymbols.d.cts.map +1 -1
- package/build/relations/ReferenceSymbols.d.mts +1 -2
- package/build/relations/ReferenceSymbols.d.mts.map +1 -1
- package/build/relations/Relation.d.cts +3 -3
- package/build/relations/Relation.d.cts.map +1 -1
- package/build/relations/Relation.d.mts +3 -3
- package/build/relations/Relation.d.mts.map +1 -1
- package/build/relations/RelationSymbols.d.cts +2 -3
- package/build/relations/RelationSymbols.d.cts.map +1 -1
- package/build/relations/RelationSymbols.d.mts +2 -3
- package/build/relations/RelationSymbols.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.cjs.map +1 -1
- package/build/relations/hasAsyncMethod.d.cts +6 -6
- package/build/relations/hasAsyncMethod.d.cts.map +1 -1
- package/build/relations/hasAsyncMethod.d.mts +6 -6
- package/build/relations/hasAsyncMethod.d.mts.map +1 -1
- package/build/relations/hasAsyncMethod.js.map +1 -1
- package/build/relations/hasManyDerived.d.cts +2 -2
- package/build/relations/hasManyDerived.d.cts.map +1 -1
- package/build/relations/hasManyDerived.d.mts +2 -2
- package/build/relations/hasManyDerived.d.mts.map +1 -1
- package/build/relations/hasManyThrough.d.cts +1 -2
- package/build/relations/hasManyThrough.d.cts.map +1 -1
- package/build/relations/hasManyThrough.d.mts +1 -2
- package/build/relations/hasManyThrough.d.mts.map +1 -1
- package/build/relations/hasOneDerived.d.cts +1 -2
- package/build/relations/hasOneDerived.d.cts.map +1 -1
- package/build/relations/hasOneDerived.d.mts +1 -2
- package/build/relations/hasOneDerived.d.mts.map +1 -1
- package/build/relations/hasOneThrough.d.cts +1 -2
- package/build/relations/hasOneThrough.d.cts.map +1 -1
- package/build/relations/hasOneThrough.d.mts +1 -2
- package/build/relations/hasOneThrough.d.mts.map +1 -1
- package/build/relations/hasProperty.cjs.map +1 -1
- package/build/relations/hasProperty.d.cts +8 -8
- package/build/relations/hasProperty.d.cts.map +1 -1
- package/build/relations/hasProperty.d.mts +8 -8
- package/build/relations/hasProperty.d.mts.map +1 -1
- package/build/relations/hasProperty.js.map +1 -1
- package/build/relations/isCascadeDelete.d.cts +1 -2
- package/build/relations/isCascadeDelete.d.cts.map +1 -1
- package/build/relations/isCascadeDelete.d.mts +1 -2
- package/build/relations/isCascadeDelete.d.mts.map +1 -1
- package/build/resurrection.d.cts +3 -4
- package/build/resurrection.d.cts.map +1 -1
- package/build/resurrection.d.mts +3 -4
- package/build/resurrection.d.mts.map +1 -1
- package/build/rules.d.cts +20 -20
- package/build/rules.d.cts.map +1 -1
- package/build/rules.d.mts +20 -20
- package/build/rules.d.mts.map +1 -1
- package/build/runtimeConfig.d.cts +4 -5
- package/build/runtimeConfig.d.cts.map +1 -1
- package/build/runtimeConfig.d.mts +4 -5
- package/build/runtimeConfig.d.mts.map +1 -1
- package/build/serde/TypeInfo.d.cts +3 -4
- package/build/serde/TypeInfo.d.cts.map +1 -1
- package/build/serde/TypeInfo.d.mts +3 -4
- package/build/serde/TypeInfo.d.mts.map +1 -1
- package/build/serde/columns.d.cts +2 -3
- package/build/serde/columns.d.cts.map +1 -1
- package/build/serde/columns.d.mts +2 -3
- package/build/serde/columns.d.mts.map +1 -1
- package/build/serde/fieldSerde.d.cts +9 -9
- package/build/serde/fieldSerde.d.cts.map +1 -1
- package/build/serde/fieldSerde.d.mts +9 -9
- package/build/serde/fieldSerde.d.mts.map +1 -1
- package/build/serde/serde.d.cts +18 -19
- package/build/serde/serde.d.cts.map +1 -1
- package/build/serde/serde.d.mts +18 -19
- package/build/serde/serde.d.mts.map +1 -1
- package/build/serde/temporal.d.cts +5 -5
- package/build/serde/temporal.d.cts.map +1 -1
- package/build/serde/temporal.d.mts +5 -5
- package/build/serde/temporal.d.mts.map +1 -1
- package/build/serde/temporalMappers.d.cts +4 -5
- package/build/serde/temporalMappers.d.cts.map +1 -1
- package/build/serde/temporalMappers.d.mts +4 -5
- package/build/serde/temporalMappers.d.mts.map +1 -1
- package/build/transitions.d.cts +17 -18
- package/build/transitions.d.cts.map +1 -1
- package/build/transitions.d.mts +17 -18
- package/build/transitions.d.mts.map +1 -1
- package/build/trusted.d.cts +2 -3
- package/build/trusted.d.cts.map +1 -1
- package/build/trusted.d.mts +2 -3
- package/build/trusted.d.mts.map +1 -1
- package/build/typeMap.d.cts +17 -17
- package/build/typeMap.d.cts.map +1 -1
- package/build/typeMap.d.mts +17 -17
- package/build/typeMap.d.mts.map +1 -1
- package/build/upsert.d.cts +4 -4
- package/build/upsert.d.cts.map +1 -1
- package/build/upsert.d.mts +4 -4
- package/build/upsert.d.mts.map +1 -1
- package/build/utils.d.cts +27 -28
- package/build/utils.d.cts.map +1 -1
- package/build/utils.d.mts +27 -28
- package/build/utils.d.mts.map +1 -1
- package/package.json +4 -4
|
@@ -43,11 +43,11 @@ import { Entity } from "../../Entity.cjs";
|
|
|
43
43
|
*
|
|
44
44
|
* User documentation: `docs/src/content/docs/features/queries-raw.md`.
|
|
45
45
|
*/
|
|
46
|
-
declare const subqueryBrand: unique symbol;
|
|
47
|
-
declare const entityQueryBrand: unique symbol;
|
|
48
|
-
declare const scalarQueryBrand: unique symbol;
|
|
46
|
+
export declare const subqueryBrand: unique symbol;
|
|
47
|
+
export declare const entityQueryBrand: unique symbol;
|
|
48
|
+
export declare const scalarQueryBrand: unique symbol;
|
|
49
49
|
/** A query(...) value with any projection, for EXISTS and NOT EXISTS predicates. */
|
|
50
|
-
type ExistsQuery = QueryTable<unknown, string> | EntityQuery<Entity> | {
|
|
50
|
+
export type ExistsQuery = QueryTable<unknown, string> | EntityQuery<Entity> | {
|
|
51
51
|
readonly [scalarQueryBrand]: true;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
@@ -57,7 +57,7 @@ type ExistsQuery = QueryTable<unknown, string> | EntityQuery<Entity> | {
|
|
|
57
57
|
* I.e. `{ and: [a.age.gte(18), { exists: booksForAuthor }] }` selects adult Authors with Books,
|
|
58
58
|
* where `booksForAuthor` is `query({ from: b, where: b.author_id.eq(a.id), select: b.id })`.
|
|
59
59
|
*/
|
|
60
|
-
type QueryCondition = SqlPredicate | UnbrandedPredicate | (({
|
|
60
|
+
export type QueryCondition = SqlPredicate | UnbrandedPredicate | (({
|
|
61
61
|
and: readonly (QueryCondition | undefined)[];
|
|
62
62
|
or?: never;
|
|
63
63
|
exists?: never;
|
|
@@ -81,14 +81,14 @@ type QueryCondition = SqlPredicate | UnbrandedPredicate | (({
|
|
|
81
81
|
or?: never;
|
|
82
82
|
};
|
|
83
83
|
/** Phantom type information carried by a table-shaped `query(...)` value. */
|
|
84
|
-
interface QueryTableBrand<R, Name extends string> {
|
|
84
|
+
export interface QueryTableBrand<R, Name extends string> {
|
|
85
85
|
readonly __row: R;
|
|
86
86
|
readonly __name: Name;
|
|
87
87
|
}
|
|
88
88
|
/** @deprecated Renamed to `QueryTableBrand`; a `query(...)` value is a table shape, not only a subquery. */
|
|
89
|
-
type SubqueryBrand<R, Name extends string> = QueryTableBrand<R, Name>;
|
|
89
|
+
export type SubqueryBrand<R, Name extends string> = QueryTableBrand<R, Name>;
|
|
90
90
|
/** Anything that can be a source or be joined: an entity table or a table-shaped subquery. */
|
|
91
|
-
type QuerySource = {
|
|
91
|
+
export type QuerySource = {
|
|
92
92
|
readonly [tableMgmt]: TableSourceBrand<string>;
|
|
93
93
|
} | {
|
|
94
94
|
readonly [subqueryBrand]: QueryTableBrand<any, string>;
|
|
@@ -104,36 +104,36 @@ type SelectableQuerySource = {
|
|
|
104
104
|
* entry a relation join factory returns (`a.books.as(b)`); joins to a subquery are always the expanded
|
|
105
105
|
* form, since a subquery has no FK metadata.
|
|
106
106
|
*/
|
|
107
|
-
type QueryJoin = InnerJoin<QuerySource, QueryCondition> | LeftJoin<QuerySource, QueryCondition>;
|
|
108
|
-
type QueryJoinList = readonly (QueryJoin | undefined)[];
|
|
107
|
+
export type QueryJoin = InnerJoin<QuerySource, QueryCondition> | LeftJoin<QuerySource, QueryCondition>;
|
|
108
|
+
export type QueryJoinList = readonly (QueryJoin | undefined)[];
|
|
109
109
|
/** A flat SQL join list or a domain relationship tree rooted at from. */
|
|
110
|
-
type QueryJoinInput = QueryJoinList | Readonly<Record<string, unknown>>;
|
|
110
|
+
export type QueryJoinInput = QueryJoinList | Readonly<Record<string, unknown>>;
|
|
111
111
|
/**
|
|
112
112
|
* Resolves tree bindings to join types for scope and result nullability.
|
|
113
113
|
* Deferring the extracted entry union avoids expanding recursive constraints in generic query signatures.
|
|
114
114
|
*/
|
|
115
|
-
type ResolvedJoins<F, J> = J extends QueryJoinList ? J : F extends TableFor<infer T extends Entity> ? TreeEntries<T, J> extends (infer E) ? readonly Extract<E, QueryJoin>[] : never : [];
|
|
115
|
+
export type ResolvedJoins<F, J> = J extends QueryJoinList ? J : F extends TableFor<infer T extends Entity> ? TreeEntries<T, J> extends (infer E) ? readonly Extract<E, QueryJoin>[] : never : [];
|
|
116
116
|
/**
|
|
117
117
|
* A CTE declaration: a `query(...)` value with named columns, i.e. a POJO or set-operation select.
|
|
118
118
|
*
|
|
119
119
|
* Entity-mode and scalar `query(...)` shapes are excluded: a CTE must be a table shape, so it needs
|
|
120
120
|
* columns.
|
|
121
121
|
*/
|
|
122
|
-
type WithSource = QueryTable<unknown, string>;
|
|
122
|
+
export type WithSource = QueryTable<unknown, string>;
|
|
123
123
|
/** One CTE or an array of them; an `undefined` entry prunes, like any other clause. */
|
|
124
|
-
type WithInput = WithSource | readonly (WithSource | undefined)[];
|
|
124
|
+
export type WithInput = WithSource | readonly (WithSource | undefined)[];
|
|
125
125
|
/** How a recursive CTE combines its two terms: `UNION ALL` keeps every row, `UNION` drops duplicates. */
|
|
126
|
-
interface RecursiveOptions {
|
|
126
|
+
export interface RecursiveOptions {
|
|
127
127
|
/** Defaults to `"all"`. `"distinct"` emits UNION, which stops a cyclic graph from looping forever. */
|
|
128
128
|
union?: "all" | "distinct";
|
|
129
129
|
}
|
|
130
130
|
/** An expression order-by entry, also returned by `expr.asc()` and `expr.desc()`. An undefined order prunes it. */
|
|
131
|
-
type ExpressionOrderBy = {
|
|
131
|
+
export type ExpressionOrderBy = {
|
|
132
132
|
readonly sort: ExprLike<unknown>;
|
|
133
133
|
readonly order: "ASC" | "DESC" | undefined;
|
|
134
134
|
readonly nulls?: "first" | "last";
|
|
135
135
|
};
|
|
136
|
-
type OrderByDirection = "ASC" | "DESC" | "ASC NULLS FIRST" | "ASC NULLS LAST" | "DESC NULLS FIRST" | "DESC NULLS LAST";
|
|
136
|
+
export type OrderByDirection = "ASC" | "DESC" | "ASC NULLS FIRST" | "ASC NULLS LAST" | "DESC NULLS FIRST" | "DESC NULLS LAST";
|
|
137
137
|
/**
|
|
138
138
|
* A keyed `orderBy` entry, used alone or in an array, like `em.find`'s `orderBy: [{ firstName: "ASC" }]`.
|
|
139
139
|
*
|
|
@@ -142,7 +142,7 @@ type OrderByDirection = "ASC" | "DESC" | "ASC NULLS FIRST" | "ASC NULLS LAST" |
|
|
|
142
142
|
* An `undefined` direction prunes the entry, like any other condition. For expressions that are not
|
|
143
143
|
* in `select`, mix in `expr.asc()`/`expr.desc()` or `{ sort, order }` entries in the array form.
|
|
144
144
|
*/
|
|
145
|
-
type OrderByKeys<S> = S extends readonly NamedSelectExpression[] ? { readonly [K in SelectKey<S[number]>]?: OrderByDirection | undefined; } : S extends {
|
|
145
|
+
export type OrderByKeys<S> = S extends readonly NamedSelectExpression[] ? { readonly [K in SelectKey<S[number]>]?: OrderByDirection | undefined; } : S extends {
|
|
146
146
|
readonly [tableMgmt]: {
|
|
147
147
|
readonly __entity: infer T;
|
|
148
148
|
};
|
|
@@ -154,11 +154,11 @@ type CheckedExpressionOrderBy<S> = ExpressionOrderBy & (string extends OrderByKe
|
|
|
154
154
|
readonly [tableMgmt]: unknown;
|
|
155
155
|
}] ? unknown : { readonly [K in Exclude<OrderByKey<S>, keyof ExpressionOrderBy>]?: never; });
|
|
156
156
|
/** The select shapes: a source, scalar expression, named column array, or POJO naming result columns. */
|
|
157
|
-
type QuerySelect = SelectableQuerySource | ExprLike<unknown> | readonly NamedSelectExpression[] | Record<string, SelectExpression>;
|
|
157
|
+
export type QuerySelect = SelectableQuerySource | ExprLike<unknown> | readonly NamedSelectExpression[] | Record<string, SelectExpression>;
|
|
158
158
|
/** A named projection value may be an existing expression or an inline expression literal. */
|
|
159
|
-
type SelectExpression = ExprLike<unknown> | ExprInput;
|
|
159
|
+
export type SelectExpression = ExprLike<unknown> | ExprInput;
|
|
160
160
|
/** A physical or subquery column that retains the field name used for array-select result rows. */
|
|
161
|
-
type NamedSelectExpression = ExprLike<unknown> & {
|
|
161
|
+
export type NamedSelectExpression = ExprLike<unknown> & {
|
|
162
162
|
readonly [selectKeyBrand]: string;
|
|
163
163
|
};
|
|
164
164
|
/** Extracts the table property name carried by a column expression for array selects. */
|
|
@@ -174,7 +174,7 @@ type CheckSelect<S> = S extends QuerySource | ExprLike<unknown> | readonly Named
|
|
|
174
174
|
* `S` and `J` are generic so callers keep the literal shape of `select` and `join`; the defaults let
|
|
175
175
|
* a standalone object use `satisfies Query` (or `satisfies Clauses` for a source-less fragment).
|
|
176
176
|
*/
|
|
177
|
-
interface Clauses<S extends QuerySelect = QuerySelect, J extends QueryJoinInput = QueryJoinInput> {
|
|
177
|
+
export interface Clauses<S extends QuerySelect = QuerySelect, J extends QueryJoinInput = QueryJoinInput> {
|
|
178
178
|
/**
|
|
179
179
|
* CTEs to include in a `WITH` clause, declared as `query(...)` values; either a single value or an array.
|
|
180
180
|
*
|
|
@@ -210,7 +210,7 @@ interface Clauses<S extends QuerySelect = QuerySelect, J extends QueryJoinInput
|
|
|
210
210
|
softDeletes?: "include" | "exclude";
|
|
211
211
|
}
|
|
212
212
|
/** A whole query: `Clauses` plus its source. `query(q)` turns it into a value; `em.query(q)` runs it. */
|
|
213
|
-
interface Query<S extends QuerySelect = QuerySelect, J extends QueryJoinInput = QueryJoinInput> extends Clauses<S, J>, Partial<Record<SetOperation | MutationKey | "ctes", never>> {
|
|
213
|
+
export interface Query<S extends QuerySelect = QuerySelect, J extends QueryJoinInput = QueryJoinInput> extends Clauses<S, J>, Partial<Record<SetOperation | MutationKey | "ctes", never>> {
|
|
214
214
|
from: QuerySource;
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
@@ -218,7 +218,7 @@ interface Query<S extends QuerySelect = QuerySelect, J extends QueryJoinInput =
|
|
|
218
218
|
*
|
|
219
219
|
* I.e. `union` removes duplicate projected Author names; `unionAll` keeps every copy.
|
|
220
220
|
*/
|
|
221
|
-
type SetOperation = "union" | "unionAll" | "intersect" | "intersectAll" | "except" | "exceptAll";
|
|
221
|
+
export type SetOperation = "union" | "unionAll" | "intersect" | "intersectAll" | "except" | "exceptAll";
|
|
222
222
|
/** Mutation clauses are forbidden even on nonliteral read inputs. */
|
|
223
223
|
type MutationKey = "insert" | "update" | "delete" | "values" | "set" | "returning" | "allowAll";
|
|
224
224
|
/**
|
|
@@ -229,7 +229,7 @@ type MutationKey = "insert" | "update" | "delete" | "values" | "set" | "returnin
|
|
|
229
229
|
* I.e. `{ from: a, select: { id: a.id } }` and its `query(...)` value can contribute Author IDs to a
|
|
230
230
|
* union. `{ from: a, select: a.id }` cannot: even one-column set operands must give that column a name.
|
|
231
231
|
*/
|
|
232
|
-
type SetOperand = Query<Record<string, SelectExpression> | QueryTable<unknown, string>> | QueryTable<unknown, string> | SetQuery<readonly SetOperand[]>;
|
|
232
|
+
export type SetOperand = Query<Record<string, SelectExpression> | QueryTable<unknown, string>> | QueryTable<unknown, string> | SetQuery<readonly SetOperand[]>;
|
|
233
233
|
/**
|
|
234
234
|
* SQL-shaped compound input; use `satisfies SetQuery` to retain the operands' literal row types.
|
|
235
235
|
*
|
|
@@ -248,7 +248,7 @@ type SetOperand = Query<Record<string, SelectExpression> | QueryTable<unknown, s
|
|
|
248
248
|
* sized arrays; `CheckSetQuery` validates their row types, and runtime validation checks their length.
|
|
249
249
|
* This input shape checks direction values; `CheckSetQuery` checks the inferred output keys in orderBy.
|
|
250
250
|
*/
|
|
251
|
-
type SetQuery<Operands extends readonly SetOperand[] = readonly [SetOperand, SetOperand, ...SetOperand[]]> = { [K in SetOperation]: { readonly [P in K]: Operands; } & { readonly [P in Exclude<SetOperation, K>]?: never; }; }[SetOperation] & {
|
|
251
|
+
export type SetQuery<Operands extends readonly SetOperand[] = readonly [SetOperand, SetOperand, ...SetOperand[]]> = { [K in SetOperation]: { readonly [P in K]: Operands; } & { readonly [P in Exclude<SetOperation, K>]?: never; }; }[SetOperation] & {
|
|
252
252
|
/** CTEs for the combined query, declared once and in scope for every operand; see `Clauses.with`. */
|
|
253
253
|
readonly with?: WithInput;
|
|
254
254
|
readonly orderBy?: Readonly<Record<string, OrderByDirection | undefined>> | readonly (Readonly<Record<string, OrderByDirection | undefined>> | undefined)[];
|
|
@@ -278,7 +278,7 @@ type FirstOperand<Q> = OperandsOf<Q>[0];
|
|
|
278
278
|
* `{ title: string | undefined }`, even though Book.title is required. A reusable `query(...)` value already
|
|
279
279
|
* stores that row type in its brand; a nested compound combines its own operands recursively.
|
|
280
280
|
*/
|
|
281
|
-
type ReadQueryRow<Q> = SetOperand extends Q ? unknown : Q extends {
|
|
281
|
+
export type ReadQueryRow<Q> = SetOperand extends Q ? unknown : Q extends {
|
|
282
282
|
readonly [subqueryBrand]: {
|
|
283
283
|
readonly __row: infer R;
|
|
284
284
|
};
|
|
@@ -295,7 +295,7 @@ type ReadQueryRow<Q> = SetOperand extends Q ? unknown : Q extends {
|
|
|
295
295
|
* The outer conditional distributes over a TypeScript union of alternative queries. I.e. a runtime
|
|
296
296
|
* choice between an Author-name UNION and a Book-order EXCEPT must retain `{ name: string } | { order: number }`.
|
|
297
297
|
*/
|
|
298
|
-
type SetQueryRow<Q> = Q extends unknown ? { -readonly [K in keyof ReadQueryRow<FirstOperand<Q>>]: ColumnValue<Q extends {
|
|
298
|
+
export type SetQueryRow<Q> = Q extends unknown ? { -readonly [K in keyof ReadQueryRow<FirstOperand<Q>>]: ColumnValue<Q extends {
|
|
299
299
|
union: readonly SetOperand[];
|
|
300
300
|
} | {
|
|
301
301
|
unionAll: readonly SetOperand[];
|
|
@@ -314,7 +314,7 @@ type ColumnValue<R, K extends PropertyKey> = R extends unknown ? (K extends keyo
|
|
|
314
314
|
* This is only a TypeScript check: Author.age and Author.age.sum() both pass as numbers, but runtime
|
|
315
315
|
* output-type checks must still reject their different int4/int8 representations.
|
|
316
316
|
*/
|
|
317
|
-
type CompatibleValue<L, R> = [NonNullable<L>] extends [NonNullable<R>] ? true : [NonNullable<R>] extends [NonNullable<L>] ? true : false;
|
|
317
|
+
export type CompatibleValue<L, R> = [NonNullable<L>] extends [NonNullable<R>] ? true : [NonNullable<R>] extends [NonNullable<L>] ? true : false;
|
|
318
318
|
/**
|
|
319
319
|
* Requires exactly the same output keys and compatible TypeScript values for every column.
|
|
320
320
|
*
|
|
@@ -357,7 +357,7 @@ type CheckSetOrder<O, Keys> = O extends readonly unknown[] ? { readonly [I in ke
|
|
|
357
357
|
* The result is intersected with the inferred input Q. Unknown constraints leave its literal types
|
|
358
358
|
* intact; error messages make the offending operands or ordering keys incompatible with that input.
|
|
359
359
|
*/
|
|
360
|
-
type CheckSetQuery<Q extends SetQuery<readonly SetOperand[]>> = Q extends unknown ? SetOperand extends FirstOperand<Q> ? "set operands were typed too generically; use `satisfies SetQuery` instead" : { readonly [K in keyof Q]: K extends SetOperation ? Q[K] extends readonly SetOperand[] ? number extends Q[K]["length"] ? CheckOperands<Q[K]> : Q[K] extends readonly [SetOperand, SetOperand, ...SetOperand[]] ? CheckOperands<Q[K]> : "set operations require at least two operands" : never : unknown; } & CheckReadQuery<Q> & {
|
|
360
|
+
export type CheckSetQuery<Q extends SetQuery<readonly SetOperand[]>> = Q extends unknown ? SetOperand extends FirstOperand<Q> ? "set operands were typed too generically; use `satisfies SetQuery` instead" : { readonly [K in keyof Q]: K extends SetOperation ? Q[K] extends readonly SetOperand[] ? number extends Q[K]["length"] ? CheckOperands<Q[K]> : Q[K] extends readonly [SetOperand, SetOperand, ...SetOperand[]] ? CheckOperands<Q[K]> : "set operations require at least two operands" : never : unknown; } & CheckReadQuery<Q> & {
|
|
361
361
|
readonly orderBy?: CheckSetOrder<Q["orderBy"], keyof ReadQueryRow<FirstOperand<Q>>>;
|
|
362
362
|
} : never;
|
|
363
363
|
/**
|
|
@@ -365,7 +365,7 @@ type CheckSetQuery<Q extends SetQuery<readonly SetOperand[]>> = Q extends unknow
|
|
|
365
365
|
* Intersect this with an inferred Q; a widened annotation cannot reveal keys already erased from its type.
|
|
366
366
|
* I.e. an INSERT source with `select: { title: b.title }` and `ctes: [...]` must not silently discard the CTEs.
|
|
367
367
|
*/
|
|
368
|
-
type CheckReadQuery<Q> = SetOperand extends Q ? unknown : Q extends readonly unknown[] ? { readonly [I in keyof Q]: CheckReadQuery<Q[I]>; } : Q extends {
|
|
368
|
+
export type CheckReadQuery<Q> = SetOperand extends Q ? unknown : Q extends readonly unknown[] ? { readonly [I in keyof Q]: CheckReadQuery<Q[I]>; } : Q extends {
|
|
369
369
|
readonly [subqueryBrand]: QueryTableBrand<infer R, string>;
|
|
370
370
|
} ? { readonly [K in keyof Q]: K extends keyof R | typeof subqueryBrand ? unknown : never; } : Q extends {
|
|
371
371
|
readonly [entityQueryBrand]: unknown;
|
|
@@ -374,7 +374,7 @@ type CheckReadQuery<Q> = SetOperand extends Q ? unknown : Q extends readonly unk
|
|
|
374
374
|
readonly select: unknown;
|
|
375
375
|
} ? CheckJoinInput<Q["from"], "join" extends keyof Q ? Exclude<Q[keyof Q & "join"], undefined> : []> & { readonly [K in keyof Q]: K extends "select" ? CheckSelect<Q[K]> : K extends keyof Clauses | "from" | "as" ? unknown : never; } : { readonly [K in keyof Q]: K extends SetOperation ? Q[K] extends readonly unknown[] ? CheckReadQuery<Q[K]> : unknown : K extends "with" | "orderBy" | "limit" | "offset" | "as" ? unknown : never; };
|
|
376
376
|
/** The type-level name of a table or subquery, i.e. `"Author"` or `"book_stats"`. */
|
|
377
|
-
type NameOf<A> = A extends {
|
|
377
|
+
export type NameOf<A> = A extends {
|
|
378
378
|
readonly [tableMgmt]: {
|
|
379
379
|
readonly __name: infer N;
|
|
380
380
|
};
|
|
@@ -412,7 +412,7 @@ type NullableSources<X, Left = LeftJoined<X>> = [Exclude<InheritedLeft<X, Left>,
|
|
|
412
412
|
* table named `string` would nullify every column in the query. That is why anonymous subqueries
|
|
413
413
|
* share the literal sentinel `"?"` instead.
|
|
414
414
|
*/
|
|
415
|
-
type MaybeNull<R, Src extends string, J extends QueryJoinList> = string extends Src ? [NullableSources<J[number]>] extends [never] ? R : R | null : [Extract<Src, NullableSources<J[number]>>] extends [never] ? R : R | null;
|
|
415
|
+
export type MaybeNull<R, Src extends string, J extends QueryJoinList> = string extends Src ? [NullableSources<J[number]>] extends [never] ? R : R | null : [Extract<Src, NullableSources<J[number]>>] extends [never] ? R : R | null;
|
|
416
416
|
/**
|
|
417
417
|
* The result row for a query with select `S` and joins `J`.
|
|
418
418
|
*
|
|
@@ -422,7 +422,7 @@ type MaybeNull<R, Src extends string, J extends QueryJoinList> = string extends
|
|
|
422
422
|
* - column array mode uses each column's field name as the result key
|
|
423
423
|
* - POJO mode is a mapped type over the select keys, with left-join nullability applied
|
|
424
424
|
*/
|
|
425
|
-
type QueryRow<S, J extends QueryJoinList = []> = S extends {
|
|
425
|
+
export type QueryRow<S, J extends QueryJoinList = []> = S extends {
|
|
426
426
|
readonly [tableMgmt]: {
|
|
427
427
|
readonly __entity: infer T;
|
|
428
428
|
};
|
|
@@ -448,7 +448,7 @@ type QueryResultValue<V> = Exclude<V, null> | (null extends V ? undefined : neve
|
|
|
448
448
|
* while predicates and reusable queries use Sql, avoiding this reverse conversion without making the
|
|
449
449
|
* common expression declaration verbose.
|
|
450
450
|
*/
|
|
451
|
-
type SqlExpressionValue<V> = Exclude<V, undefined> | (undefined extends V ? null : never);
|
|
451
|
+
export type SqlExpressionValue<V> = Exclude<V, undefined> | (undefined extends V ? null : never);
|
|
452
452
|
/**
|
|
453
453
|
* A table-shaped query: one `Expr` per select key, each tagged with the table's name as its `Src`,
|
|
454
454
|
* plus a brand carrying the row type. This is the direct analog of `Table<T>`: `Table<T>` maps physical
|
|
@@ -456,21 +456,21 @@ type SqlExpressionValue<V> = Exclude<V, undefined> | (undefined extends V ? null
|
|
|
456
456
|
*
|
|
457
457
|
* It is a table, not only a subquery: the same value can be the `from`, be joined, or be a `with` entry.
|
|
458
458
|
*/
|
|
459
|
-
type QueryTable<R, Name extends string> = {
|
|
459
|
+
export type QueryTable<R, Name extends string> = {
|
|
460
460
|
readonly [subqueryBrand]: QueryTableBrand<R, Name>;
|
|
461
461
|
} & { readonly [K in keyof R]: Expr<SqlExpressionValue<R[K]>, Name> & {
|
|
462
462
|
readonly [selectKeyBrand]: Extract<K, string>;
|
|
463
463
|
}; };
|
|
464
464
|
/** @deprecated Renamed to `QueryTable`; the value is a table shape, usable as a `with` entry too. */
|
|
465
|
-
type Subquery<R, Name extends string> = QueryTable<R, Name>;
|
|
465
|
+
export type Subquery<R, Name extends string> = QueryTable<R, Name>;
|
|
466
466
|
/** An entity-mode query (`select: a`): runnable, but it has no columns to reference. */
|
|
467
|
-
type EntityQuery<T extends Entity> = {
|
|
467
|
+
export type EntityQuery<T extends Entity> = {
|
|
468
468
|
readonly [entityQueryBrand]: {
|
|
469
469
|
readonly __row: T;
|
|
470
470
|
};
|
|
471
471
|
} & Partial<Record<MutationKey | "with" | "ctes", never>>;
|
|
472
472
|
/** A scalar/list query that remains distinguishable from ordinary expressions for EXISTS. */
|
|
473
|
-
type ScalarQuery<R> = Expr<SqlExpressionValue<R> | null, never> & {
|
|
473
|
+
export type ScalarQuery<R> = Expr<SqlExpressionValue<R> | null, never> & {
|
|
474
474
|
readonly [scalarQueryBrand]: true;
|
|
475
475
|
};
|
|
476
476
|
/**
|
|
@@ -497,11 +497,11 @@ type ScalarQuery<R> = Expr<SqlExpressionValue<R> | null, never> & {
|
|
|
497
497
|
* `S` also defaults to `never`, so a *missing* `select` is reported as "Property 'select' is missing"
|
|
498
498
|
* against `Query<never, []>` instead of tripping this guard.
|
|
499
499
|
*/
|
|
500
|
-
type NotWidened<S> = QuerySelect extends S ? {
|
|
500
|
+
export type NotWidened<S> = QuerySelect extends S ? {
|
|
501
501
|
select: "select was typed too generically; use `satisfies Query` instead of `: Query`";
|
|
502
502
|
} : unknown;
|
|
503
503
|
/** What `query()` returns, by select shape: an entity list, a scalar/list subquery, or a derived table. */
|
|
504
|
-
type QueryValue<S, J extends QueryJoinList, Name extends string> = S extends {
|
|
504
|
+
export type QueryValue<S, J extends QueryJoinList, Name extends string> = S extends {
|
|
505
505
|
readonly [tableMgmt]: {
|
|
506
506
|
readonly __entity: infer T extends Entity;
|
|
507
507
|
};
|
|
@@ -528,7 +528,7 @@ type InScope<F, J extends QueryJoinList> = NameOf<F> | JoinedName<J[number]>;
|
|
|
528
528
|
* `S` to `never` when `select` is missing, and a distributive conditional over `never` would swallow the
|
|
529
529
|
* whole parameter type.
|
|
530
530
|
*/
|
|
531
|
-
type CheckScope<S, F, J extends QueryJoinInput> = [S] extends [never] ? unknown : [S] extends [QuerySource] ? NameOf<S> extends NameOf<F> ? unknown : {
|
|
531
|
+
export type CheckScope<S, F, J extends QueryJoinInput> = [S] extends [never] ? unknown : [S] extends [QuerySource] ? NameOf<S> extends NameOf<F> ? unknown : {
|
|
532
532
|
select: `'${NameOf<S> & string}' is a joined source, not the from; select its columns individually`;
|
|
533
533
|
} : [S] extends [readonly NamedSelectExpression[]] ? {
|
|
534
534
|
select: { [K in keyof S]: CheckExpressionScope<S[K], InScope<F, ResolvedJoins<F, J>>>; };
|
|
@@ -538,7 +538,7 @@ type CheckScope<S, F, J extends QueryJoinInput> = [S] extends [never] ? unknown
|
|
|
538
538
|
/** Includes columns nested in inline CASE values and fallbacks in the existing scope check. */
|
|
539
539
|
type CheckExpressionScope<V, Scope> = string extends ExpressionSources<V> ? unknown : [Exclude<ExpressionSources<V>, Scope>] extends [never] ? unknown : `table '${Exclude<ExpressionSources<V>, Scope> & string}' is not in from/join`;
|
|
540
540
|
/** The one argument type `query()` and `em.query()` share: a `Query` POJO plus its source, name, and checks. */
|
|
541
|
-
type QueryArg<F extends QuerySource, S extends QuerySelect, J extends QueryJoinInput, Name extends string> = Query<S, J> & {
|
|
541
|
+
export type QueryArg<F extends QuerySource, S extends QuerySelect, J extends QueryJoinInput, Name extends string> = Query<S, J> & {
|
|
542
542
|
from: F;
|
|
543
543
|
as?: Name;
|
|
544
544
|
} & CheckScope<S, F, J> & NoInfer<CheckJoinInput<F, J>> & NotWidened<S> & {
|
|
@@ -562,10 +562,10 @@ type QueryArg<F extends QuerySource, S extends QuerySelect, J extends QueryJoinI
|
|
|
562
562
|
* completions and cost 15-28% check time. The separate compound root has one additional signature;
|
|
563
563
|
* `NotWidened` still rejects a SELECT widened by a `: Query` annotation.
|
|
564
564
|
*/
|
|
565
|
-
declare function query<const Q extends SetQuery<readonly SetOperand[]>, Name extends string = "?">(q: Q & CheckSetQuery<Q> & {
|
|
565
|
+
export declare function query<const Q extends SetQuery<readonly SetOperand[]>, Name extends string = "?">(q: Q & CheckSetQuery<Q> & {
|
|
566
566
|
as?: Name;
|
|
567
567
|
}): QueryTable<SetQueryRow<Q>, Name>;
|
|
568
|
-
declare function query<F extends QuerySource, const S extends QuerySelect = never, J extends QueryJoinInput = [], Name extends string = "?">(q: QueryArg<F, S, J, Name>): QueryValue<S, ResolvedJoins<F, J>, Name>;
|
|
568
|
+
export declare function query<F extends QuerySource, const S extends QuerySelect = never, J extends QueryJoinInput = [], Name extends string = "?">(q: QueryArg<F, S, J, Name>): QueryValue<S, ResolvedJoins<F, J>, Name>;
|
|
569
569
|
/**
|
|
570
570
|
* Builds a query value only when its user-supplied `where` or join-tree filters survive pruning.
|
|
571
571
|
*
|
|
@@ -575,7 +575,7 @@ declare function query<F extends QuerySource, const S extends QuerySelect = neve
|
|
|
575
575
|
* I.e. `queryMaybe({ from: b, where: b.authorId.eq(enabled ? a.id : undefined), select: b.id })`
|
|
576
576
|
* returns `undefined` when `enabled` is false, so an enclosing `notExists` also prunes.
|
|
577
577
|
*/
|
|
578
|
-
declare function queryMaybe<F extends QuerySource, const S extends QuerySelect = never, J extends QueryJoinInput = [], Name extends string = "?">(q: QueryArg<F, S, J, Name>): QueryValue<S, ResolvedJoins<F, J>, Name> | undefined;
|
|
578
|
+
export declare function queryMaybe<F extends QuerySource, const S extends QuerySelect = never, J extends QueryJoinInput = [], Name extends string = "?">(q: QueryArg<F, S, J, Name>): QueryValue<S, ResolvedJoins<F, J>, Name> | undefined;
|
|
579
579
|
/**
|
|
580
580
|
* Declares a `WITH RECURSIVE` CTE from its two terms, and returns the CTE as a readable value.
|
|
581
581
|
*
|
|
@@ -600,7 +600,7 @@ declare function queryMaybe<F extends QuerySource, const S extends QuerySelect =
|
|
|
600
600
|
*
|
|
601
601
|
* Unlike `query()`, the name is required, because the step term must name it.
|
|
602
602
|
*/
|
|
603
|
-
declare function recursiveQuery<Name extends string, F extends QuerySource, const S extends QuerySelect, J extends QueryJoinInput>(name: Name, base: QueryArg<F, S, J, Name>, step: (self: QueryTable<QueryRow<S, ResolvedJoins<F, J>>, Name>) => SetOperand, opts?: RecursiveOptions): QueryTable<QueryRow<S, ResolvedJoins<F, J>>, Name>;
|
|
603
|
+
export declare function recursiveQuery<Name extends string, F extends QuerySource, const S extends QuerySelect, J extends QueryJoinInput>(name: Name, base: QueryArg<F, S, J, Name>, step: (self: QueryTable<QueryRow<S, ResolvedJoins<F, J>>, Name>) => SetOperand, opts?: RecursiveOptions): QueryTable<QueryRow<S, ResolvedJoins<F, J>>, Name>;
|
|
604
604
|
/**
|
|
605
605
|
* Builds a SQL expression from a tagged template.
|
|
606
606
|
*
|
|
@@ -619,8 +619,8 @@ declare function recursiveQuery<Name extends string, F extends QuerySource, cons
|
|
|
619
619
|
* sql.condition`${a.column("ts_search")} @@ plainto_tsquery(${term})`
|
|
620
620
|
* ```
|
|
621
621
|
*/
|
|
622
|
-
declare function sql<R = unknown>(strings: TemplateStringsArray, ...values: unknown[]): Expr<R, never>;
|
|
623
|
-
declare namespace sql {
|
|
622
|
+
export declare function sql<R = unknown>(strings: TemplateStringsArray, ...values: unknown[]): Expr<R, never>;
|
|
623
|
+
export declare namespace sql {
|
|
624
624
|
var number: (strings: TemplateStringsArray, ...values: unknown[]) => Expr<number, never>;
|
|
625
625
|
var numberOrNull: (strings: TemplateStringsArray, ...values: unknown[]) => Expr<number | null, never>;
|
|
626
626
|
var numberArray: (strings: TemplateStringsArray, ...values: unknown[]) => Expr<number[], never>;
|
|
@@ -641,19 +641,19 @@ declare namespace sql {
|
|
|
641
641
|
* `EntityManager.query` runs the plan; this module deliberately does not import `EntityManager` (see
|
|
642
642
|
* `EntityHydrator`), so it parses and hands back `{ sql, bindings, decodeRows }` instead of executing.
|
|
643
643
|
*/
|
|
644
|
-
declare function parseRootQuery(arg: unknown): Plan;
|
|
644
|
+
export declare function parseRootQuery(arg: unknown): Plan;
|
|
645
645
|
/**
|
|
646
646
|
* Parses a read that sits inside another statement, i.e. an INSERT's SELECT source, so it resolves that
|
|
647
647
|
* statement's CTEs and shares its alias space instead of generating names that could collide with them.
|
|
648
648
|
*/
|
|
649
|
-
declare function parseNestedQuery(arg: unknown, parent: Ctx, assigner: AliasAssigner): Plan;
|
|
649
|
+
export declare function parseNestedQuery(arg: unknown, parent: Ctx, assigner: AliasAssigner): Plan;
|
|
650
650
|
/** Recognizes read brands, including malformed hybrids that must reach read validation rather than mutation execution. */
|
|
651
|
-
declare function isReadQueryValue(arg: unknown): boolean;
|
|
651
|
+
export declare function isReadQueryValue(arg: unknown): boolean;
|
|
652
652
|
/**
|
|
653
653
|
* Compiles scalar or nonempty named expression projections, shared by SELECT and mutation RETURNING.
|
|
654
654
|
* Source-shaped values need read hydration/source rules and are deliberately excluded here.
|
|
655
655
|
*/
|
|
656
|
-
declare function projectionToSql(select: unknown, ctx: Ctx, joins?: QueryJoinList): {
|
|
656
|
+
export declare function projectionToSql(select: unknown, ctx: Ctx, joins?: QueryJoinList): {
|
|
657
657
|
selects: SqlFragment[];
|
|
658
658
|
decodeRows: Plan["decodeRows"];
|
|
659
659
|
output: QueryOutput;
|
|
@@ -666,10 +666,10 @@ declare function projectionToSql(select: unknown, ctx: Ctx, joins?: QueryJoinLis
|
|
|
666
666
|
* incremental-build bug: after tsdown rewrites `build/`, `tsc --build` sporadically reports thousands
|
|
667
667
|
* of phantom "Module 'joist-orm' has no exported member ..." errors and caches them in `.tsbuildinfo`.
|
|
668
668
|
*/
|
|
669
|
-
interface EntityHydrator {
|
|
669
|
+
export interface EntityHydrator {
|
|
670
670
|
hydrate(cstr: any, rows: readonly any[]): any[];
|
|
671
671
|
}
|
|
672
|
-
interface Plan {
|
|
672
|
+
export interface Plan {
|
|
673
673
|
sql: string;
|
|
674
674
|
bindings: any[];
|
|
675
675
|
/** Aliases of enclosing queries this (sub)query referenced. */
|
|
@@ -683,13 +683,13 @@ type AnyQuery = Query<any, any> & {
|
|
|
683
683
|
};
|
|
684
684
|
type AnyReadQuery = AnyQuery | SetQuery<readonly SetOperand[]>;
|
|
685
685
|
/** Only POJO outputs can be set operands; ordinary scalar reads also expose an ordered output column. */
|
|
686
|
-
interface QueryOutput {
|
|
686
|
+
export interface QueryOutput {
|
|
687
687
|
kind: "entity" | "scalar" | "pojo";
|
|
688
688
|
/** Expressions retain codecs and physical nullability after LEFT joins and set operations. */
|
|
689
689
|
columns: readonly (readonly [string, BaseExpr])[];
|
|
690
690
|
}
|
|
691
691
|
/** The runtime identity of a `query(...)` value; `Ctx.aliasFor` keys on it, like a table's `TableMgmt`. */
|
|
692
|
-
declare class SubqueryHandle {
|
|
692
|
+
export declare class SubqueryHandle {
|
|
693
693
|
#private;
|
|
694
694
|
readonly recursive: boolean;
|
|
695
695
|
constructor(q: AnyReadQuery, recursive?: boolean);
|
|
@@ -746,7 +746,7 @@ declare class SubqueryColumnExpr extends BaseExpr {
|
|
|
746
746
|
* records the hit in `outerRefs`, which is how a correlated subquery reports the outer aliases it
|
|
747
747
|
* depends on (the way `ExistsCondition.outerAliases` does), so join pruning keeps them.
|
|
748
748
|
*/
|
|
749
|
-
declare class Ctx implements ExprContext {
|
|
749
|
+
export declare class Ctx implements ExprContext {
|
|
750
750
|
readonly assigner: AliasAssigner;
|
|
751
751
|
private parent;
|
|
752
752
|
private aliases;
|
|
@@ -808,7 +808,7 @@ declare class Ctx implements ExprContext {
|
|
|
808
808
|
conditionToSql(cond: QueryCondition): SqlFragment | undefined;
|
|
809
809
|
}
|
|
810
810
|
/** A parsed `with` entry: the CTE's name and its body, ready to render into the WITH clause. */
|
|
811
|
-
interface ParsedCte {
|
|
811
|
+
export interface ParsedCte {
|
|
812
812
|
alias: string;
|
|
813
813
|
plan: Plan;
|
|
814
814
|
/** A recursive CTE reads itself, and makes the whole clause `WITH RECURSIVE`. */
|
|
@@ -822,7 +822,7 @@ interface ParsedCte {
|
|
|
822
822
|
* The conditions go into the from's WHERE or the join's ON, and never keep an otherwise unreferenced
|
|
823
823
|
* join alive, which is what `pruneable: true` means on em.find's side.
|
|
824
824
|
*/
|
|
825
|
-
declare function injectedConditions(source: {
|
|
825
|
+
export declare function injectedConditions(source: {
|
|
826
826
|
meta: EntityMetadata | undefined;
|
|
827
827
|
alias: string;
|
|
828
828
|
}, softDeletes: "include" | "exclude"): ColumnCondition[];
|
|
@@ -832,7 +832,7 @@ declare function injectedConditions(source: {
|
|
|
832
832
|
* `pruneIfUndefined` applies unchanged. Deferred SQL expression conditions are resolved
|
|
833
833
|
* against the context first.
|
|
834
834
|
*/
|
|
835
|
-
declare function conditionToSql(cond: QueryCondition | undefined, ctx: Ctx, topLevel: boolean): SqlFragment | undefined;
|
|
835
|
+
export declare function conditionToSql(cond: QueryCondition | undefined, ctx: Ctx, topLevel: boolean): SqlFragment | undefined;
|
|
836
836
|
/**
|
|
837
837
|
* Accepts only own enumerable POJO fields, so nothing a caller supplied can be silently ignored: the
|
|
838
838
|
* compilers read these POJOs back with `Object.entries`/`Object.keys`, which skip inherited,
|
|
@@ -844,7 +844,7 @@ declare function conditionToSql(cond: QueryCondition | undefined, ctx: Ctx, topL
|
|
|
844
844
|
* keys, i.e. a condition's predicate brand and SQL resolver. Read-query clauses instead use
|
|
845
845
|
* `validateQueryKeys`, which walks the prototype chain and reports mutation clauses by name.
|
|
846
846
|
*/
|
|
847
|
-
declare function checkPojoKeys(value: object, allowed: readonly PropertyKey[], description: string): void;
|
|
847
|
+
export declare function checkPojoKeys(value: object, allowed: readonly PropertyKey[], description: string): void;
|
|
848
848
|
/**
|
|
849
849
|
* Names and parses each `with` entry, in declaration order.
|
|
850
850
|
*
|
|
@@ -854,7 +854,7 @@ declare function checkPojoKeys(value: object, allowed: readonly PropertyKey[], d
|
|
|
854
854
|
*
|
|
855
855
|
* I.e. `with: [totals, ranked]` parses `totals` first, so `ranked` can join it, but not the reverse.
|
|
856
856
|
*/
|
|
857
|
-
declare function registerCtes(q: {
|
|
857
|
+
export declare function registerCtes(q: {
|
|
858
858
|
with?: WithInput;
|
|
859
859
|
}, ctx: Ctx, assigner: AliasAssigner): ParsedCte[];
|
|
860
860
|
/**
|
|
@@ -863,7 +863,7 @@ declare function registerCtes(q: {
|
|
|
863
863
|
* `referenced` is the aliases the rest of the statement used. The WITH clause leads the statement, so
|
|
864
864
|
* its bindings lead the statement's bindings too.
|
|
865
865
|
*/
|
|
866
|
-
declare function prependCtes(ctes: ParsedCte[], referenced: Set<string>, sql: string, bindings: any[]): {
|
|
866
|
+
export declare function prependCtes(ctes: ParsedCte[], referenced: Set<string>, sql: string, bindings: any[]): {
|
|
867
867
|
sql: string;
|
|
868
868
|
bindings: any[];
|
|
869
869
|
};
|
|
@@ -874,14 +874,14 @@ declare function prependCtes(ctes: ParsedCte[], referenced: Set<string>, sql: st
|
|
|
874
874
|
* was already visited, and its own reads are already in `referenced`. That makes one pass enough; first
|
|
875
875
|
* to last would have to repeat until the set stopped growing. `unshift` restores WITH order.
|
|
876
876
|
*/
|
|
877
|
-
declare function pruneCtes(ctes: ParsedCte[], referenced: Set<string>): ParsedCte[];
|
|
877
|
+
export declare function pruneCtes(ctes: ParsedCte[], referenced: Set<string>): ParsedCte[];
|
|
878
878
|
/**
|
|
879
879
|
* Renders `WITH a AS (...), b AS (...) `, whose bindings lead the statement, as their SQL does.
|
|
880
880
|
*
|
|
881
881
|
* One recursive CTE makes the whole clause `WITH RECURSIVE`, PostgreSQL's rule: the keyword is on the
|
|
882
882
|
* clause, not on the entry that needs it, and it does not force the other entries to be recursive.
|
|
883
883
|
*/
|
|
884
|
-
declare function withFragment(ctes: ParsedCte[]): SqlFragment;
|
|
884
|
+
export declare function withFragment(ctes: ParsedCte[]): SqlFragment;
|
|
885
885
|
//#endregion
|
|
886
|
-
export {
|
|
886
|
+
export {};
|
|
887
887
|
//# sourceMappingURL=query.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.cts","names":[],"sources":["../../../src/queries/sql/query.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"query.d.cts","names":[],"sources":["../../../src/queries/sql/query.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2Ga;qBACA;qBACA;;YAGD,cAAc,8BAA8B,YAAY;YAAsB;;;;;;;;;YAS9E,iBACR,eACA;EAEM,eAAe;EAA+B;EAAY;EAAgB;;EAC1E,cAAc;EAA+B;EAAa;EAAgB;;EAC1E;;EACJ,QAAQ;EAAyB;EAAmB;EAAa;;EACjE,WAAW;EAAyB;EAAgB;EAAa;;;iBAGtD,gBAAgB,GAAG;WACzB,OAAO;WACP,QAAQ;;;YAIP,cAAc,GAAG,uBAAuB,gBAAgB,GAAG;;YAG3D;YACI,YAAY;;YACZ,gBAAgB;;;KAG3B;YACW,YAAY;;YACZ,gBAAgB;;;;;;;YAOpB,YAAY,UAAU,aAAa,kBAAkB,SAAS,aAAa;YAC3E,0BAA0B;;YAG1B,iBAAiB,gBAAgB,SAAS;;;;;YAM1C,cAAc,GAAG,KAAK,UAAU,gBACxC,IACA,UAAU,eAAe,UAAU,UACjC,YAAY,GAAG,kBAAiB,cACrB,QAAQ,GAAG;;;;;;;YAUhB,aAAa;;YAGb,YAAY,uBAAuB;;iBAG9B;;EAEf;;;YAIU;WACD,MAAM;WACN;WACA;;YAGC;;;;;;;;;YAgBA,YAAY,KAEtB,mBAAmB,sCACH,KAAK,UAAU,cAAc,kCAEzC;YAAsB;aAAuB,gBAAgB;;IAC3D,UAAU,qBAEI,WAAW,MAAM,MAAM,MAAM,GAAG,WAAW,gBAAgB,aACjE,0CAKR,UAAU,wCAGI,WAAW,cAAc;;KAG1C,WAAW,KAAK,0BAA0B,YAAY;;KAGtD,yB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