prisma-sql 1.69.0 → 1.71.0
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/dist/generator.cjs +294 -263
- package/dist/generator.cjs.map +1 -1
- package/dist/generator.js +294 -263
- package/dist/generator.js.map +1 -1
- package/dist/index.cjs +542 -502
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +541 -503
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -203,6 +203,9 @@ interface RelationMetadata {
|
|
|
203
203
|
declare function buildReducerConfig(parentModel: Model, includeSpec: Record<string, any>, allModels: readonly Model[], prefix?: string, depth?: number): ReducerConfig;
|
|
204
204
|
declare function reduceFlatRows(rows: any[], config: ReducerConfig): any[];
|
|
205
205
|
|
|
206
|
+
type DateMode = 'iso' | 'ms';
|
|
207
|
+
declare function setNormalizeDateMode(mode: DateMode): void;
|
|
208
|
+
declare function detectSqliteDateMode(client: any): DateMode;
|
|
206
209
|
declare function normalizeValue(value: unknown, seen?: WeakSet<object>, depth?: number): unknown;
|
|
207
210
|
|
|
208
211
|
declare function createStreamingReducer(config: ReducerConfig): {
|
|
@@ -239,7 +242,7 @@ interface PostgresQueryOptions {
|
|
|
239
242
|
lateralMeta?: LateralRelationMeta[];
|
|
240
243
|
}
|
|
241
244
|
declare function executePostgresQuery(opts: PostgresQueryOptions): Promise<unknown[]>;
|
|
242
|
-
declare function executeSqliteQuery(client: any, sql: string, params: unknown[], method: string
|
|
245
|
+
declare function executeSqliteQuery(client: any, sql: string, params: unknown[], method: string): unknown[];
|
|
243
246
|
declare function executeRaw(client: any, sql: string, params: unknown[] | undefined, dialect: string): Promise<unknown[]>;
|
|
244
247
|
|
|
245
248
|
type RelStats = {
|
|
@@ -254,9 +257,9 @@ declare function setRoundtripRowEquivalent(value: number): void;
|
|
|
254
257
|
declare function setJsonRowFactor(value: number): void;
|
|
255
258
|
declare function setRelationStats(stats: RelationStatsMap): void;
|
|
256
259
|
declare function getRelationStats(): RelationStatsMap | undefined;
|
|
257
|
-
declare function countIncludeDepth(includeSpec: Record<string, any>, model: Model, schemas: readonly Model[]): number;
|
|
260
|
+
declare function countIncludeDepth(includeSpec: Record<string, any>, model: Model, schemas: readonly Model[], depth?: number): number;
|
|
258
261
|
|
|
259
262
|
declare function buildSQL(model: Model, models: Model[], method: PrismaMethod, args: Record<string, unknown>, dialect: SqlDialect): SqlResult;
|
|
260
263
|
declare function generateSQL(directive: DirectiveProps): SQLDirective;
|
|
261
264
|
|
|
262
|
-
export { type BatchCountQuery, type BatchQuery, type LateralRelationMeta, type Model, type PrismaMethod, type PrismaSQLConfig, type PrismaSQLResult, type ReducerConfig, type SqlResult, type TransactionOptions, type TransactionQuery, buildBatchCountSql, buildBatchSql, buildLateralReducerConfig, buildReducerConfig, buildSQL, countIncludeDepth, createProgressiveReducer, createStreamingReducer, createTransactionExecutor, executePostgresQuery, executeRaw, executeSqliteQuery, executeWhereInSegments, executeWhereInSegmentsStreaming, executeWithPreFetchedParents, extractCountValue, generateSQL, getOrPrepareStatement, getPrimaryKeyField, getRelationStats, getRowTransformer, normalizeParams, normalizeValue, parseBatchCountResults, parseBatchResults, planQueryStrategy, reduceFlatRows, reduceLateralRows, setJsonRowFactor, setRelationStats, setRoundtripRowEquivalent, shouldSqliteUseGet, transformAggregateRow, transformQueryResults };
|
|
265
|
+
export { type BatchCountQuery, type BatchQuery, type LateralRelationMeta, type Model, type PrismaMethod, type PrismaSQLConfig, type PrismaSQLResult, type ReducerConfig, type SqlResult, type TransactionOptions, type TransactionQuery, buildBatchCountSql, buildBatchSql, buildLateralReducerConfig, buildReducerConfig, buildSQL, countIncludeDepth, createProgressiveReducer, createStreamingReducer, createTransactionExecutor, detectSqliteDateMode, executePostgresQuery, executeRaw, executeSqliteQuery, executeWhereInSegments, executeWhereInSegmentsStreaming, executeWithPreFetchedParents, extractCountValue, generateSQL, getOrPrepareStatement, getPrimaryKeyField, getRelationStats, getRowTransformer, normalizeParams, normalizeValue, parseBatchCountResults, parseBatchResults, planQueryStrategy, reduceFlatRows, reduceLateralRows, setJsonRowFactor, setNormalizeDateMode, setRelationStats, setRoundtripRowEquivalent, shouldSqliteUseGet, transformAggregateRow, transformQueryResults };
|
package/dist/index.d.ts
CHANGED
|
@@ -203,6 +203,9 @@ interface RelationMetadata {
|
|
|
203
203
|
declare function buildReducerConfig(parentModel: Model, includeSpec: Record<string, any>, allModels: readonly Model[], prefix?: string, depth?: number): ReducerConfig;
|
|
204
204
|
declare function reduceFlatRows(rows: any[], config: ReducerConfig): any[];
|
|
205
205
|
|
|
206
|
+
type DateMode = 'iso' | 'ms';
|
|
207
|
+
declare function setNormalizeDateMode(mode: DateMode): void;
|
|
208
|
+
declare function detectSqliteDateMode(client: any): DateMode;
|
|
206
209
|
declare function normalizeValue(value: unknown, seen?: WeakSet<object>, depth?: number): unknown;
|
|
207
210
|
|
|
208
211
|
declare function createStreamingReducer(config: ReducerConfig): {
|
|
@@ -239,7 +242,7 @@ interface PostgresQueryOptions {
|
|
|
239
242
|
lateralMeta?: LateralRelationMeta[];
|
|
240
243
|
}
|
|
241
244
|
declare function executePostgresQuery(opts: PostgresQueryOptions): Promise<unknown[]>;
|
|
242
|
-
declare function executeSqliteQuery(client: any, sql: string, params: unknown[], method: string
|
|
245
|
+
declare function executeSqliteQuery(client: any, sql: string, params: unknown[], method: string): unknown[];
|
|
243
246
|
declare function executeRaw(client: any, sql: string, params: unknown[] | undefined, dialect: string): Promise<unknown[]>;
|
|
244
247
|
|
|
245
248
|
type RelStats = {
|
|
@@ -254,9 +257,9 @@ declare function setRoundtripRowEquivalent(value: number): void;
|
|
|
254
257
|
declare function setJsonRowFactor(value: number): void;
|
|
255
258
|
declare function setRelationStats(stats: RelationStatsMap): void;
|
|
256
259
|
declare function getRelationStats(): RelationStatsMap | undefined;
|
|
257
|
-
declare function countIncludeDepth(includeSpec: Record<string, any>, model: Model, schemas: readonly Model[]): number;
|
|
260
|
+
declare function countIncludeDepth(includeSpec: Record<string, any>, model: Model, schemas: readonly Model[], depth?: number): number;
|
|
258
261
|
|
|
259
262
|
declare function buildSQL(model: Model, models: Model[], method: PrismaMethod, args: Record<string, unknown>, dialect: SqlDialect): SqlResult;
|
|
260
263
|
declare function generateSQL(directive: DirectiveProps): SQLDirective;
|
|
261
264
|
|
|
262
|
-
export { type BatchCountQuery, type BatchQuery, type LateralRelationMeta, type Model, type PrismaMethod, type PrismaSQLConfig, type PrismaSQLResult, type ReducerConfig, type SqlResult, type TransactionOptions, type TransactionQuery, buildBatchCountSql, buildBatchSql, buildLateralReducerConfig, buildReducerConfig, buildSQL, countIncludeDepth, createProgressiveReducer, createStreamingReducer, createTransactionExecutor, executePostgresQuery, executeRaw, executeSqliteQuery, executeWhereInSegments, executeWhereInSegmentsStreaming, executeWithPreFetchedParents, extractCountValue, generateSQL, getOrPrepareStatement, getPrimaryKeyField, getRelationStats, getRowTransformer, normalizeParams, normalizeValue, parseBatchCountResults, parseBatchResults, planQueryStrategy, reduceFlatRows, reduceLateralRows, setJsonRowFactor, setRelationStats, setRoundtripRowEquivalent, shouldSqliteUseGet, transformAggregateRow, transformQueryResults };
|
|
265
|
+
export { type BatchCountQuery, type BatchQuery, type LateralRelationMeta, type Model, type PrismaMethod, type PrismaSQLConfig, type PrismaSQLResult, type ReducerConfig, type SqlResult, type TransactionOptions, type TransactionQuery, buildBatchCountSql, buildBatchSql, buildLateralReducerConfig, buildReducerConfig, buildSQL, countIncludeDepth, createProgressiveReducer, createStreamingReducer, createTransactionExecutor, detectSqliteDateMode, executePostgresQuery, executeRaw, executeSqliteQuery, executeWhereInSegments, executeWhereInSegmentsStreaming, executeWithPreFetchedParents, extractCountValue, generateSQL, getOrPrepareStatement, getPrimaryKeyField, getRelationStats, getRowTransformer, normalizeParams, normalizeValue, parseBatchCountResults, parseBatchResults, planQueryStrategy, reduceFlatRows, reduceLateralRows, setJsonRowFactor, setNormalizeDateMode, setRelationStats, setRoundtripRowEquivalent, shouldSqliteUseGet, transformAggregateRow, transformQueryResults };
|