@tsonic/efcore-npgsql 10.0.2 → 10.0.5
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/Microsoft.EntityFrameworkCore/internal/index.d.ts +2 -0
- package/Microsoft.EntityFrameworkCore.Metadata.Internal.d.ts +3 -0
- package/Microsoft.Extensions.DependencyInjection.d.ts +3 -0
- package/Npgsql/internal/index.d.ts +226 -190
- package/Npgsql.BackendMessages/internal/index.d.ts +0 -1
- package/Npgsql.EntityFrameworkCore.PostgreSQL/internal/index.d.ts +3 -5
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/internal/index.d.ts +12 -16
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Extensions.Internal.d.ts +3 -0
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/internal/index.d.ts +6 -6
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/internal/index.d.ts +25 -21
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/internal/index.d.ts +3 -0
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal.d.ts +3 -0
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata/internal/index.d.ts +8 -11
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/internal/index.d.ts +46 -41
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal/internal/index.d.ts +4 -0
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/internal/index.d.ts +39 -41
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/internal/index.d.ts +7 -7
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations/internal/index.d.ts +10 -2
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query/internal/index.d.ts +2 -0
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.ExpressionTranslators.Internal/internal/index.d.ts +69 -0
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/internal/index.d.ts +91 -91
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/internal/index.d.ts +113 -146
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal/internal/index.d.ts +4 -0
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/internal/index.d.ts +48 -34
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json/internal/index.d.ts +0 -1
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/internal/index.d.ts +220 -400
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/internal/index.d.ts +20 -22
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/internal/index.d.ts +19 -12
- package/Npgsql.Internal/internal/index.d.ts +35 -46
- package/Npgsql.Internal.Postgres/internal/index.d.ts +6 -0
- package/Npgsql.NameTranslation/internal/index.d.ts +4 -0
- package/Npgsql.PostgresTypes/internal/index.d.ts +9 -18
- package/Npgsql.Replication/internal/index.d.ts +7 -3
- package/Npgsql.Replication.Internal/internal/index.d.ts +1 -2
- package/Npgsql.Replication.PgOutput/internal/index.d.ts +4 -3
- package/Npgsql.Replication.PgOutput.Messages/internal/index.d.ts +3 -29
- package/Npgsql.Replication.TestDecoding/internal/index.d.ts +2 -0
- package/Npgsql.Schema/internal/index.d.ts +7 -7
- package/Npgsql.TypeMapping/internal/index.d.ts +2 -0
- package/NpgsqlTypes/internal/index.d.ts +67 -9
- package/__internal/extensions/index.d.ts +752 -12
- package/package.json +1 -1
|
@@ -30,6 +30,8 @@ export enum NpgsqlSqlTranslatingExpressionVisitor_StartsEndsWithContains {
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
export interface NpgsqlCompiledQueryCacheKeyGenerator$instance extends RelationalCompiledQueryCacheKeyGenerator {
|
|
33
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_ICompiledQueryCacheKeyGenerator: never;
|
|
34
|
+
|
|
33
35
|
GenerateCacheKey(query: Expression, async: boolean): unknown;
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -41,13 +43,9 @@ export const NpgsqlCompiledQueryCacheKeyGenerator: {
|
|
|
41
43
|
|
|
42
44
|
export type NpgsqlCompiledQueryCacheKeyGenerator = NpgsqlCompiledQueryCacheKeyGenerator$instance;
|
|
43
45
|
|
|
44
|
-
export
|
|
45
|
-
protected VisitDelete(deleteExpression: DeleteExpression): Expression;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export interface NpgsqlDeleteConvertingExpressionVisitor$instance extends NpgsqlDeleteConvertingExpressionVisitor$protected, ExpressionVisitor {
|
|
46
|
+
export interface NpgsqlDeleteConvertingExpressionVisitor$instance extends ExpressionVisitor {
|
|
50
47
|
Process(node: Expression): Expression;
|
|
48
|
+
VisitDelete(deleteExpression: DeleteExpression): Expression;
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
|
|
@@ -59,6 +57,8 @@ export const NpgsqlDeleteConvertingExpressionVisitor: {
|
|
|
59
57
|
export type NpgsqlDeleteConvertingExpressionVisitor = NpgsqlDeleteConvertingExpressionVisitor$instance;
|
|
60
58
|
|
|
61
59
|
export interface NpgsqlEvaluatableExpressionFilter$instance extends RelationalEvaluatableExpressionFilter {
|
|
60
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_IEvaluatableExpressionFilter: never;
|
|
61
|
+
|
|
62
62
|
IsEvaluatableExpression(expression: Expression, model: IModel): boolean;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -70,13 +70,9 @@ export const NpgsqlEvaluatableExpressionFilter: {
|
|
|
70
70
|
|
|
71
71
|
export type NpgsqlEvaluatableExpressionFilter = NpgsqlEvaluatableExpressionFilter$instance;
|
|
72
72
|
|
|
73
|
-
export
|
|
74
|
-
protected ProcessSqlNullability(selectExpression: Expression, parametersDecorator: ParametersCacheDecorator): Expression;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
export interface NpgsqlParameterBasedSqlProcessor$instance extends NpgsqlParameterBasedSqlProcessor$protected, RelationalParameterBasedSqlProcessor {
|
|
73
|
+
export interface NpgsqlParameterBasedSqlProcessor$instance extends RelationalParameterBasedSqlProcessor {
|
|
79
74
|
Process(queryExpression: Expression, parametersDecorator: ParametersCacheDecorator): Expression;
|
|
75
|
+
ProcessSqlNullability(selectExpression: Expression, parametersDecorator: ParametersCacheDecorator): Expression;
|
|
80
76
|
}
|
|
81
77
|
|
|
82
78
|
|
|
@@ -88,6 +84,8 @@ export const NpgsqlParameterBasedSqlProcessor: {
|
|
|
88
84
|
export type NpgsqlParameterBasedSqlProcessor = NpgsqlParameterBasedSqlProcessor$instance;
|
|
89
85
|
|
|
90
86
|
export interface NpgsqlParameterBasedSqlProcessorFactory$instance {
|
|
87
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_IRelationalParameterBasedSqlProcessorFactory: never;
|
|
88
|
+
|
|
91
89
|
Create(parameters: RelationalParameterBasedSqlProcessorParameters): RelationalParameterBasedSqlProcessor;
|
|
92
90
|
}
|
|
93
91
|
|
|
@@ -99,48 +97,41 @@ export const NpgsqlParameterBasedSqlProcessorFactory: {
|
|
|
99
97
|
|
|
100
98
|
export type NpgsqlParameterBasedSqlProcessorFactory = NpgsqlParameterBasedSqlProcessorFactory$instance;
|
|
101
99
|
|
|
102
|
-
export
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
export interface NpgsqlQueryableMethodTranslatingExpressionVisitor$instance extends NpgsqlQueryableMethodTranslatingExpressionVisitor$protected, RelationalQueryableMethodTranslatingExpressionVisitor {
|
|
100
|
+
export interface NpgsqlQueryableMethodTranslatingExpressionVisitor$instance extends RelationalQueryableMethodTranslatingExpressionVisitor {
|
|
101
|
+
CreateSubqueryVisitor(): QueryableMethodTranslatingExpressionVisitor;
|
|
102
|
+
GenerateJsonPartialUpdateSetter(target: Expression, value: SqlExpression, existingSetterValue: SqlExpression): SqlExpression | undefined;
|
|
103
|
+
IsNaturallyOrdered(selectExpression: SelectExpression): boolean;
|
|
104
|
+
IsOrdered(selectExpression: SelectExpression): boolean;
|
|
105
|
+
IsValidSelectExpressionForExecuteDelete(selectExpression: SelectExpression): boolean;
|
|
106
|
+
IsValidSelectExpressionForExecuteUpdate(selectExpression: SelectExpression, targetTable: TableExpressionBase, tableExpression: TableExpression): boolean;
|
|
107
|
+
TransformJsonQueryToTable(jsonQueryExpression: JsonQueryExpression): ShapedQueryExpression;
|
|
108
|
+
TranslateAll(source: ShapedQueryExpression, predicate: LambdaExpression): ShapedQueryExpression | undefined;
|
|
109
|
+
TranslateAny(source: ShapedQueryExpression, predicate: LambdaExpression): ShapedQueryExpression | undefined;
|
|
110
|
+
TranslateConcat(source1: ShapedQueryExpression, source2: ShapedQueryExpression): ShapedQueryExpression;
|
|
111
|
+
TranslateContains(source: ShapedQueryExpression, item: Expression): ShapedQueryExpression | undefined;
|
|
112
|
+
TranslateCount(source: ShapedQueryExpression, predicate: LambdaExpression): ShapedQueryExpression | undefined;
|
|
113
|
+
TranslateElementAtOrDefault(source: ShapedQueryExpression, index: Expression, returnDefault: boolean): ShapedQueryExpression | undefined;
|
|
114
|
+
TranslateFirstOrDefault(source: ShapedQueryExpression, predicate: LambdaExpression, returnType: Type, returnDefault: boolean): ShapedQueryExpression | undefined;
|
|
115
|
+
TranslatePrimitiveCollection(sqlExpression: SqlExpression, property: IProperty, tableAlias: string): ShapedQueryExpression | undefined;
|
|
116
|
+
TranslateSkip(source: ShapedQueryExpression, count: Expression): ShapedQueryExpression | undefined;
|
|
117
|
+
TranslateTake(source: ShapedQueryExpression, count: Expression): ShapedQueryExpression | undefined;
|
|
118
|
+
TranslateWhere(source: ShapedQueryExpression, predicate: LambdaExpression): ShapedQueryExpression | undefined;
|
|
119
|
+
TrySerializeScalarToJson(target: JsonScalarExpression, value: SqlExpression, jsonValue: SqlExpression): boolean;
|
|
126
120
|
}
|
|
127
121
|
|
|
128
122
|
|
|
129
123
|
export const NpgsqlQueryableMethodTranslatingExpressionVisitor: {
|
|
130
124
|
new(dependencies: QueryableMethodTranslatingExpressionVisitorDependencies, relationalDependencies: RelationalQueryableMethodTranslatingExpressionVisitorDependencies, queryCompilationContext: RelationalQueryCompilationContext, npgsqlSingletonOptions: INpgsqlSingletonOptions): NpgsqlQueryableMethodTranslatingExpressionVisitor;
|
|
131
|
-
new(parentVisitor: NpgsqlQueryableMethodTranslatingExpressionVisitor): NpgsqlQueryableMethodTranslatingExpressionVisitor;
|
|
132
125
|
};
|
|
133
126
|
|
|
134
127
|
|
|
135
128
|
export type NpgsqlQueryableMethodTranslatingExpressionVisitor = NpgsqlQueryableMethodTranslatingExpressionVisitor$instance;
|
|
136
129
|
|
|
137
|
-
export
|
|
138
|
-
|
|
139
|
-
protected readonly RelationalDependencies: RelationalQueryableMethodTranslatingExpressionVisitorDependencies;
|
|
140
|
-
}
|
|
130
|
+
export interface NpgsqlQueryableMethodTranslatingExpressionVisitorFactory$instance {
|
|
131
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_IQueryableMethodTranslatingExpressionVisitorFactory: never;
|
|
141
132
|
|
|
142
|
-
|
|
143
|
-
|
|
133
|
+
readonly Dependencies: QueryableMethodTranslatingExpressionVisitorDependencies;
|
|
134
|
+
readonly RelationalDependencies: RelationalQueryableMethodTranslatingExpressionVisitorDependencies;
|
|
144
135
|
Create(queryCompilationContext: QueryCompilationContext): QueryableMethodTranslatingExpressionVisitor;
|
|
145
136
|
}
|
|
146
137
|
|
|
@@ -167,6 +158,8 @@ export const NpgsqlQueryCompilationContext: {
|
|
|
167
158
|
export type NpgsqlQueryCompilationContext = NpgsqlQueryCompilationContext$instance;
|
|
168
159
|
|
|
169
160
|
export interface NpgsqlQueryCompilationContextFactory$instance {
|
|
161
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_IQueryCompilationContextFactory: never;
|
|
162
|
+
|
|
170
163
|
Create(async: boolean): QueryCompilationContext;
|
|
171
164
|
CreatePrecompiled(async: boolean): QueryCompilationContext;
|
|
172
165
|
}
|
|
@@ -179,48 +172,44 @@ export const NpgsqlQueryCompilationContextFactory: {
|
|
|
179
172
|
|
|
180
173
|
export type NpgsqlQueryCompilationContextFactory = NpgsqlQueryCompilationContextFactory$instance;
|
|
181
174
|
|
|
182
|
-
export
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
export interface NpgsqlQuerySqlGenerator$instance extends NpgsqlQuerySqlGenerator$protected, QuerySqlGenerator {
|
|
175
|
+
export interface NpgsqlQuerySqlGenerator$instance extends QuerySqlGenerator {
|
|
176
|
+
GenerateLimitOffset(selectExpression: SelectExpression): void;
|
|
177
|
+
GenerateRootCommand(queryExpression: Expression): void;
|
|
178
|
+
GenerateSetOperation(setOperation: SetOperationBase): void;
|
|
179
|
+
GenerateSetOperationOperand(setOperation: SetOperationBase, operand: SelectExpression): void;
|
|
180
|
+
GenerateTop(selectExpression: SelectExpression): void;
|
|
181
|
+
GenerateValues(valuesExpression: ValuesExpression): void;
|
|
182
|
+
GetOperator(e: SqlBinaryExpression): string;
|
|
183
|
+
RequiresParentheses(outerExpression: SqlExpression, innerExpression: SqlExpression): boolean;
|
|
184
|
+
TryGenerateWithoutWrappingSelect(selectExpression: SelectExpression): boolean;
|
|
185
|
+
TryGetOperatorInfo(expression: SqlExpression, precedence: int, isAssociative: boolean): boolean;
|
|
186
|
+
VisitArrayAll(expression: PgAllExpression): Expression;
|
|
187
|
+
VisitArrayAny(expression: PgAnyExpression): Expression;
|
|
188
|
+
VisitArrayIndex(expression: SqlBinaryExpression): Expression;
|
|
189
|
+
VisitArrayIndex(expression: PgArrayIndexExpression): Expression;
|
|
190
|
+
VisitArraySlice(expression: PgArraySliceExpression): Expression;
|
|
191
|
+
VisitCollate(collateExpression: CollateExpression): Expression;
|
|
192
|
+
VisitCrossApply(crossApplyExpression: CrossApplyExpression): Expression;
|
|
193
|
+
VisitDelete(deleteExpression: DeleteExpression): Expression;
|
|
194
|
+
VisitExtension(extensionExpression: Expression): Expression;
|
|
195
|
+
VisitILike(likeExpression: PgILikeExpression, negated?: boolean): Expression;
|
|
196
|
+
VisitJsonPathTraversal(expression: PgJsonTraversalExpression): Expression;
|
|
197
|
+
VisitJsonScalar(jsonScalarExpression: JsonScalarExpression): Expression;
|
|
198
|
+
VisitNewArray(pgNewArrayExpression: PgNewArrayExpression): Expression;
|
|
199
|
+
VisitOrdering(ordering: OrderingExpression): Expression;
|
|
200
|
+
VisitOuterApply(outerApplyExpression: OuterApplyExpression): Expression;
|
|
201
|
+
VisitPgBinary(binaryExpression: PgBinaryExpression): Expression;
|
|
202
|
+
VisitPgDelete(pgDeleteExpression: PgDeleteExpression): Expression;
|
|
203
|
+
VisitPgFunction(e: PgFunctionExpression): Expression;
|
|
204
|
+
VisitPgTableValuedFunctionExpression(tableValuedFunctionExpression: PgTableValuedFunctionExpression): Expression;
|
|
205
|
+
VisitRegexMatch(expression: PgRegexMatchExpression, negated?: boolean): Expression;
|
|
206
|
+
VisitRowValue(rowValueExpression: PgRowValueExpression): Expression;
|
|
207
|
+
VisitSqlBinary(binary: SqlBinaryExpression): Expression;
|
|
208
|
+
VisitSqlConstant(sqlConstantExpression: SqlConstantExpression): Expression;
|
|
209
|
+
VisitSqlUnary(sqlUnaryExpression: SqlUnaryExpression): Expression;
|
|
210
|
+
VisitUnknownBinary(unknownBinaryExpression: PgUnknownBinaryExpression): Expression;
|
|
211
|
+
VisitUpdate(updateExpression: UpdateExpression): Expression;
|
|
212
|
+
VisitValues(valuesExpression: ValuesExpression): Expression;
|
|
224
213
|
}
|
|
225
214
|
|
|
226
215
|
|
|
@@ -232,6 +221,8 @@ export const NpgsqlQuerySqlGenerator: {
|
|
|
232
221
|
export type NpgsqlQuerySqlGenerator = NpgsqlQuerySqlGenerator$instance;
|
|
233
222
|
|
|
234
223
|
export interface NpgsqlQuerySqlGeneratorFactory$instance {
|
|
224
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_IQuerySqlGeneratorFactory: never;
|
|
225
|
+
|
|
235
226
|
Create(): QuerySqlGenerator;
|
|
236
227
|
}
|
|
237
228
|
|
|
@@ -243,14 +234,10 @@ export const NpgsqlQuerySqlGeneratorFactory: {
|
|
|
243
234
|
|
|
244
235
|
export type NpgsqlQuerySqlGeneratorFactory = NpgsqlQuerySqlGeneratorFactory$instance;
|
|
245
236
|
|
|
246
|
-
export
|
|
247
|
-
protected ProcessTypeMappings(expression: Expression): Expression;
|
|
248
|
-
protected Prune(query: Expression): Expression;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
export interface NpgsqlQueryTranslationPostprocessor$instance extends NpgsqlQueryTranslationPostprocessor$protected, RelationalQueryTranslationPostprocessor {
|
|
237
|
+
export interface NpgsqlQueryTranslationPostprocessor$instance extends RelationalQueryTranslationPostprocessor {
|
|
253
238
|
Process(query: Expression): Expression;
|
|
239
|
+
ProcessTypeMappings(expression: Expression): Expression;
|
|
240
|
+
Prune(query: Expression): Expression;
|
|
254
241
|
}
|
|
255
242
|
|
|
256
243
|
|
|
@@ -261,13 +248,11 @@ export const NpgsqlQueryTranslationPostprocessor: {
|
|
|
261
248
|
|
|
262
249
|
export type NpgsqlQueryTranslationPostprocessor = NpgsqlQueryTranslationPostprocessor$instance;
|
|
263
250
|
|
|
264
|
-
export
|
|
265
|
-
|
|
266
|
-
protected readonly RelationalDependencies: RelationalQueryTranslationPostprocessorDependencies;
|
|
267
|
-
}
|
|
251
|
+
export interface NpgsqlQueryTranslationPostprocessorFactory$instance {
|
|
252
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_IQueryTranslationPostprocessorFactory: never;
|
|
268
253
|
|
|
269
|
-
|
|
270
|
-
|
|
254
|
+
readonly Dependencies: QueryTranslationPostprocessorDependencies;
|
|
255
|
+
readonly RelationalDependencies: RelationalQueryTranslationPostprocessorDependencies;
|
|
271
256
|
Create(queryCompilationContext: QueryCompilationContext): QueryTranslationPostprocessor;
|
|
272
257
|
}
|
|
273
258
|
|
|
@@ -279,12 +264,8 @@ export const NpgsqlQueryTranslationPostprocessorFactory: {
|
|
|
279
264
|
|
|
280
265
|
export type NpgsqlQueryTranslationPostprocessorFactory = NpgsqlQueryTranslationPostprocessorFactory$instance;
|
|
281
266
|
|
|
282
|
-
export
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
export interface NpgsqlSetOperationTypingInjector$instance extends NpgsqlSetOperationTypingInjector$protected, ExpressionVisitor {
|
|
267
|
+
export interface NpgsqlSetOperationTypingInjector$instance extends ExpressionVisitor {
|
|
268
|
+
VisitExtension(extensionExpression: Expression): Expression;
|
|
288
269
|
}
|
|
289
270
|
|
|
290
271
|
|
|
@@ -295,25 +276,21 @@ export const NpgsqlSetOperationTypingInjector: {
|
|
|
295
276
|
|
|
296
277
|
export type NpgsqlSetOperationTypingInjector = NpgsqlSetOperationTypingInjector$instance;
|
|
297
278
|
|
|
298
|
-
export
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
export interface NpgsqlSqlNullabilityProcessor$instance extends NpgsqlSqlNullabilityProcessor$protected, SqlNullabilityProcessor {
|
|
279
|
+
export interface NpgsqlSqlNullabilityProcessor$instance extends SqlNullabilityProcessor {
|
|
280
|
+
VisitAll(allExpression: PgAllExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
281
|
+
VisitAny(anyExpression: PgAnyExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
282
|
+
VisitArrayIndex(arrayIndexExpression: PgArrayIndexExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
283
|
+
VisitArraySlice(arraySliceExpression: PgArraySliceExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
284
|
+
VisitCustomSqlExpression(sqlExpression: SqlExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
285
|
+
VisitILike(iLikeExpression: PgILikeExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
286
|
+
VisitJsonTraversal(jsonTraversalExpression: PgJsonTraversalExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
287
|
+
VisitNewArray(newArrayExpression: PgNewArrayExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
288
|
+
VisitPostgresBinary(binaryExpression: PgBinaryExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
289
|
+
VisitRegexMatch(regexMatchExpression: PgRegexMatchExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
290
|
+
VisitRowValueExpression(rowValueExpression: PgRowValueExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
291
|
+
VisitSqlBinary(sqlBinaryExpression: SqlBinaryExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
292
|
+
VisitSqlFunction(sqlFunctionExpression: SqlFunctionExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
293
|
+
VisitUnknownBinary(unknownBinaryExpression: PgUnknownBinaryExpression, allowOptimizedExpansion: boolean, nullable: boolean): SqlExpression;
|
|
317
294
|
}
|
|
318
295
|
|
|
319
296
|
|
|
@@ -324,19 +301,15 @@ export const NpgsqlSqlNullabilityProcessor: {
|
|
|
324
301
|
|
|
325
302
|
export type NpgsqlSqlNullabilityProcessor = NpgsqlSqlNullabilityProcessor$instance;
|
|
326
303
|
|
|
327
|
-
export
|
|
328
|
-
protected VisitBinary(binaryExpression: BinaryExpression): Expression;
|
|
329
|
-
protected VisitConditional(conditionalExpression: ConditionalExpression): Expression;
|
|
330
|
-
protected VisitMethodCall(methodCallExpression: MethodCallExpression): Expression;
|
|
331
|
-
protected VisitNew(newExpression: NewExpression): Expression;
|
|
332
|
-
protected VisitNewArray(newArrayExpression: NewArrayExpression): Expression;
|
|
333
|
-
protected VisitUnary(unaryExpression: UnaryExpression): Expression;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
export interface NpgsqlSqlTranslatingExpressionVisitor$instance extends NpgsqlSqlTranslatingExpressionVisitor$protected, RelationalSqlTranslatingExpressionVisitor {
|
|
304
|
+
export interface NpgsqlSqlTranslatingExpressionVisitor$instance extends RelationalSqlTranslatingExpressionVisitor {
|
|
338
305
|
GenerateGreatest(expressions: IReadOnlyList<SqlExpression>, resultType: Type): SqlExpression;
|
|
339
306
|
GenerateLeast(expressions: IReadOnlyList<SqlExpression>, resultType: Type): SqlExpression;
|
|
307
|
+
VisitBinary(binaryExpression: BinaryExpression): Expression;
|
|
308
|
+
VisitConditional(conditionalExpression: ConditionalExpression): Expression;
|
|
309
|
+
VisitMethodCall(methodCallExpression: MethodCallExpression): Expression;
|
|
310
|
+
VisitNew(newExpression: NewExpression): Expression;
|
|
311
|
+
VisitNewArray(newArrayExpression: NewArrayExpression): Expression;
|
|
312
|
+
VisitUnary(unaryExpression: UnaryExpression): Expression;
|
|
340
313
|
}
|
|
341
314
|
|
|
342
315
|
|
|
@@ -349,6 +322,8 @@ export const NpgsqlSqlTranslatingExpressionVisitor: {
|
|
|
349
322
|
export type NpgsqlSqlTranslatingExpressionVisitor = NpgsqlSqlTranslatingExpressionVisitor$instance;
|
|
350
323
|
|
|
351
324
|
export interface NpgsqlSqlTranslatingExpressionVisitorFactory$instance {
|
|
325
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Query_IRelationalSqlTranslatingExpressionVisitorFactory: never;
|
|
326
|
+
|
|
352
327
|
Create(queryCompilationContext: QueryCompilationContext, queryableMethodTranslatingExpressionVisitor: QueryableMethodTranslatingExpressionVisitor): RelationalSqlTranslatingExpressionVisitor;
|
|
353
328
|
}
|
|
354
329
|
|
|
@@ -360,12 +335,8 @@ export const NpgsqlSqlTranslatingExpressionVisitorFactory: {
|
|
|
360
335
|
|
|
361
336
|
export type NpgsqlSqlTranslatingExpressionVisitorFactory = NpgsqlSqlTranslatingExpressionVisitorFactory$instance;
|
|
362
337
|
|
|
363
|
-
export
|
|
364
|
-
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
export interface NpgsqlSqlTreePruner$instance extends NpgsqlSqlTreePruner$protected, SqlTreePruner {
|
|
338
|
+
export interface NpgsqlSqlTreePruner$instance extends SqlTreePruner {
|
|
339
|
+
VisitExtension(node: Expression): Expression;
|
|
369
340
|
}
|
|
370
341
|
|
|
371
342
|
|
|
@@ -376,12 +347,8 @@ export const NpgsqlSqlTreePruner: {
|
|
|
376
347
|
|
|
377
348
|
export type NpgsqlSqlTreePruner = NpgsqlSqlTreePruner$instance;
|
|
378
349
|
|
|
379
|
-
export
|
|
380
|
-
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
export interface NpgsqlTypeMappingPostprocessor$instance extends NpgsqlTypeMappingPostprocessor$protected, RelationalTypeMappingPostprocessor {
|
|
350
|
+
export interface NpgsqlTypeMappingPostprocessor$instance extends RelationalTypeMappingPostprocessor {
|
|
351
|
+
VisitExtension(expression: Expression): Expression;
|
|
385
352
|
}
|
|
386
353
|
|
|
387
354
|
|
|
@@ -17,6 +17,8 @@ import type { DatabaseModelFactory, DatabaseModelFactoryOptions, IDatabaseModelF
|
|
|
17
17
|
import type { DatabaseModel } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Scaffolding.Metadata.js";
|
|
18
18
|
|
|
19
19
|
export interface NpgsqlCodeGenerator$instance extends ProviderCodeGenerator {
|
|
20
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Scaffolding_IProviderConfigurationCodeGenerator: never;
|
|
21
|
+
|
|
20
22
|
GenerateUseProvider(connectionString: string, providerOptions: MethodCallCodeFragment): MethodCallCodeFragment;
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -29,6 +31,8 @@ export const NpgsqlCodeGenerator: {
|
|
|
29
31
|
export type NpgsqlCodeGenerator = NpgsqlCodeGenerator$instance;
|
|
30
32
|
|
|
31
33
|
export interface NpgsqlDatabaseModelFactory$instance extends DatabaseModelFactory {
|
|
34
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Scaffolding_IDatabaseModelFactory: never;
|
|
35
|
+
|
|
32
36
|
Create(connectionString: string, options: DatabaseModelFactoryOptions): DatabaseModel;
|
|
33
37
|
Create(dbConnection: DbConnection, options: DatabaseModelFactoryOptions): DatabaseModel;
|
|
34
38
|
}
|
|
@@ -30,15 +30,22 @@ import * as Microsoft_EntityFrameworkCore_Storage_Internal from "@tsonic/efcore/
|
|
|
30
30
|
import type { CoreTypeMapping, ExecutionResult, ExecutionStrategyDependencies, IDatabaseCreator, IDbContextTransactionManager, IExecutionStrategy, IExecutionStrategyFactory, IRawSqlCommandBuilder, IRelationalConnection, IRelationalDatabaseCreator, IRelationalTransactionManager, IRelationalTypeMappingSource, ISqlGenerationHelper, ITransactionEnlistmentManager, ITypeMappingSource, RelationalConnection, RelationalConnectionDependencies, RelationalDatabaseCreator, RelationalDatabaseCreatorDependencies, RelationalExecutionStrategyFactory, RelationalSqlGenerationHelper, RelationalSqlGenerationHelperDependencies, RelationalTypeMapping, RelationalTypeMappingInfo, RelationalTypeMappingSource, RelationalTypeMappingSourceDependencies, TypeMappingSourceDependencies } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Storage.js";
|
|
31
31
|
|
|
32
32
|
export interface INpgsqlRelationalConnection$instance extends IRelationalConnection, IRelationalTransactionManager, IDbContextTransactionManager, IResettableService, IDisposable, IAsyncDisposable {
|
|
33
|
+
readonly __tsonic_iface_Npgsql_EntityFrameworkCore_PostgreSQL_Storage_Internal_INpgsqlRelationalConnection: never;
|
|
34
|
+
|
|
33
35
|
readonly DataSource: DbDataSource | undefined;
|
|
34
36
|
CloneWith(connectionString: string, async: boolean, cancellationToken?: CancellationToken): ValueTask<INpgsqlRelationalConnection>;
|
|
35
37
|
CreateAdminConnection(): INpgsqlRelationalConnection;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
|
|
41
|
+
export interface INpgsqlRelationalConnection$instance extends Microsoft_EntityFrameworkCore_Infrastructure_Internal.IResettableService, Microsoft_EntityFrameworkCore_Storage_Internal.IDbContextTransactionManager, Microsoft_EntityFrameworkCore_Storage_Internal.IRelationalConnection, Microsoft_EntityFrameworkCore_Storage_Internal.IRelationalTransactionManager, System_Internal.IAsyncDisposable, System_Internal.IDisposable {}
|
|
42
|
+
|
|
39
43
|
export type INpgsqlRelationalConnection = INpgsqlRelationalConnection$instance;
|
|
40
44
|
|
|
41
45
|
export interface NpgsqlDatabaseCreator$instance extends RelationalDatabaseCreator {
|
|
46
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IDatabaseCreator: never;
|
|
47
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IRelationalDatabaseCreator: never;
|
|
48
|
+
|
|
42
49
|
RetryDelay: TimeSpan;
|
|
43
50
|
RetryTimeout: TimeSpan;
|
|
44
51
|
Create(): void;
|
|
@@ -61,12 +68,11 @@ export const NpgsqlDatabaseCreator: {
|
|
|
61
68
|
|
|
62
69
|
export type NpgsqlDatabaseCreator = NpgsqlDatabaseCreator$instance;
|
|
63
70
|
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
export interface NpgsqlDataSourceManager$instance {
|
|
72
|
+
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
73
|
+
readonly __tsonic_iface_System_IDisposable: never;
|
|
68
74
|
|
|
69
|
-
|
|
75
|
+
CreateDataSource(npgsqlOptionsExtension: NpgsqlOptionsExtension): NpgsqlDataSource;
|
|
70
76
|
Dispose(): void;
|
|
71
77
|
DisposeAsync(): ValueTask;
|
|
72
78
|
GetDataSource(npgsqlOptionsExtension: NpgsqlOptionsExtension, applicationServiceProvider: IServiceProvider): DbDataSource | undefined;
|
|
@@ -81,6 +87,8 @@ export const NpgsqlDataSourceManager: {
|
|
|
81
87
|
export type NpgsqlDataSourceManager = NpgsqlDataSourceManager$instance;
|
|
82
88
|
|
|
83
89
|
export interface NpgsqlExecutionStrategy$instance {
|
|
90
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IExecutionStrategy: never;
|
|
91
|
+
|
|
84
92
|
readonly RetriesOnFailure: boolean;
|
|
85
93
|
Execute<TState, TResult>(state: TState, operation: Func<DbContext, TState, TResult>, verifySucceeded: Func<DbContext, TState, ExecutionResult<TResult>>): TResult;
|
|
86
94
|
ExecuteAsync<TState, TResult>(state: TState, operation: Func<DbContext, TState, CancellationToken, Task<TResult>>, verifySucceeded: Func<DbContext, TState, CancellationToken, Task<ExecutionResult<TResult>>>, cancellationToken: CancellationToken): Task<TResult>;
|
|
@@ -94,12 +102,10 @@ export const NpgsqlExecutionStrategy: {
|
|
|
94
102
|
|
|
95
103
|
export type NpgsqlExecutionStrategy = NpgsqlExecutionStrategy$instance;
|
|
96
104
|
|
|
97
|
-
export
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
105
|
+
export interface NpgsqlExecutionStrategyFactory$instance extends RelationalExecutionStrategyFactory {
|
|
106
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IExecutionStrategyFactory: never;
|
|
101
107
|
|
|
102
|
-
|
|
108
|
+
CreateDefaultStrategy(dependencies: ExecutionStrategyDependencies): IExecutionStrategy;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
|
|
@@ -110,28 +116,33 @@ export const NpgsqlExecutionStrategyFactory: {
|
|
|
110
116
|
|
|
111
117
|
export type NpgsqlExecutionStrategyFactory = NpgsqlExecutionStrategyFactory$instance;
|
|
112
118
|
|
|
113
|
-
export
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
export interface NpgsqlRelationalConnection$instance extends RelationalConnection {
|
|
120
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Infrastructure_IResettableService: never;
|
|
121
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IDbContextTransactionManager: never;
|
|
122
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IRelationalConnection: never;
|
|
123
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IRelationalTransactionManager: never;
|
|
124
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_ITransactionEnlistmentManager: never;
|
|
125
|
+
readonly __tsonic_iface_Npgsql_EntityFrameworkCore_PostgreSQL_Storage_Internal_INpgsqlRelationalConnection: never;
|
|
126
|
+
readonly __tsonic_iface_System_IAsyncDisposable: never;
|
|
127
|
+
readonly __tsonic_iface_System_IDisposable: never;
|
|
128
|
+
|
|
129
|
+
get ConnectionString(): string | undefined;
|
|
130
|
+
set ConnectionString(value: string | undefined);
|
|
121
131
|
readonly CurrentAmbientTransaction: Transaction | undefined;
|
|
122
132
|
get DataSource(): DbDataSource | undefined;
|
|
123
|
-
set DataSource(value: DbDataSource);
|
|
133
|
+
set DataSource(value: DbDataSource | undefined);
|
|
124
134
|
DbConnection: NpgsqlConnection;
|
|
125
135
|
get DbDataSource(): DbDataSource | undefined;
|
|
126
|
-
set DbDataSource(value: DbDataSource);
|
|
136
|
+
set DbDataSource(value: DbDataSource | undefined);
|
|
137
|
+
readonly SupportsAmbientTransactions: boolean;
|
|
127
138
|
CloneWith(connectionString: string, async: boolean, cancellationToken?: CancellationToken): ValueTask<INpgsqlRelationalConnection>;
|
|
128
139
|
CreateAdminConnection(): INpgsqlRelationalConnection;
|
|
140
|
+
CreateDbConnection(): DbConnection;
|
|
129
141
|
}
|
|
130
142
|
|
|
131
143
|
|
|
132
144
|
export const NpgsqlRelationalConnection: {
|
|
133
145
|
new(dependencies: RelationalConnectionDependencies, dataSourceManager: NpgsqlDataSourceManager, options: IDbContextOptions): NpgsqlRelationalConnection;
|
|
134
|
-
new(dependencies: RelationalConnectionDependencies, dataSource: DbDataSource): NpgsqlRelationalConnection;
|
|
135
146
|
};
|
|
136
147
|
|
|
137
148
|
|
|
@@ -139,10 +150,14 @@ export interface __NpgsqlRelationalConnection$views {
|
|
|
139
150
|
As_INpgsqlRelationalConnection(): INpgsqlRelationalConnection$instance;
|
|
140
151
|
}
|
|
141
152
|
|
|
153
|
+
export interface NpgsqlRelationalConnection$instance extends Microsoft_EntityFrameworkCore_Storage_Internal.ITransactionEnlistmentManager {}
|
|
154
|
+
|
|
142
155
|
export type NpgsqlRelationalConnection = NpgsqlRelationalConnection$instance & __NpgsqlRelationalConnection$views;
|
|
143
156
|
|
|
144
157
|
|
|
145
158
|
export interface NpgsqlSqlGenerationHelper$instance extends RelationalSqlGenerationHelper {
|
|
159
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_ISqlGenerationHelper: never;
|
|
160
|
+
|
|
146
161
|
DelimitIdentifier(identifier: string): string;
|
|
147
162
|
DelimitIdentifier(builder: StringBuilder, identifier: string): void;
|
|
148
163
|
}
|
|
@@ -167,24 +182,23 @@ export const NpgsqlTransientExceptionDetector: {
|
|
|
167
182
|
|
|
168
183
|
export type NpgsqlTransientExceptionDetector = NpgsqlTransientExceptionDetector$instance;
|
|
169
184
|
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
protected FindBaseMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
174
|
-
protected FindCollectionMapping(info: RelationalTypeMappingInfo, modelType: Type, providerType: Type, elementMapping: CoreTypeMapping): RelationalTypeMapping | undefined;
|
|
175
|
-
protected FindEnumMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
176
|
-
protected FindMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
177
|
-
protected FindRowValueMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
178
|
-
protected FindUserRangeMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
179
|
-
protected ParseStoreTypeName(storeTypeName: string, unicode: Nullable<System_Internal.Boolean>, size: Nullable<System_Internal.Int32>, precision: Nullable<System_Internal.Int32>, scale: Nullable<System_Internal.Int32>): string | undefined;
|
|
180
|
-
}
|
|
181
|
-
|
|
185
|
+
export interface NpgsqlTypeMappingSource$instance extends RelationalTypeMappingSource {
|
|
186
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_IRelationalTypeMappingSource: never;
|
|
187
|
+
readonly __tsonic_iface_Microsoft_EntityFrameworkCore_Storage_ITypeMappingSource: never;
|
|
182
188
|
|
|
183
|
-
export interface NpgsqlTypeMappingSource$instance extends NpgsqlTypeMappingSource$protected, RelationalTypeMappingSource {
|
|
184
189
|
readonly EStringTypeMapping: NpgsqlEStringTypeMapping;
|
|
190
|
+
readonly ClrTypeMappings: ConcurrentDictionary<Type, RelationalTypeMapping>;
|
|
191
|
+
readonly StoreTypeMappings: ConcurrentDictionary<System_Internal.String, RelationalTypeMapping[]>;
|
|
192
|
+
FindBaseMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
193
|
+
FindCollectionMapping(info: RelationalTypeMappingInfo, modelType: Type, providerType: Type, elementMapping: CoreTypeMapping): RelationalTypeMapping | undefined;
|
|
185
194
|
FindCollectionMapping(storeType: string, modelClrType: Type, providerClrType: Type, elementMapping: CoreTypeMapping): RelationalTypeMapping | undefined;
|
|
186
195
|
FindContainerMapping(containerClrType: Type, containeeTypeMapping: RelationalTypeMapping, model: IModel): RelationalTypeMapping | undefined;
|
|
196
|
+
FindEnumMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
197
|
+
FindMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
187
198
|
FindMapping(property: IProperty): RelationalTypeMapping | undefined;
|
|
199
|
+
FindRowValueMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
200
|
+
FindUserRangeMapping(mappingInfo: RelationalTypeMappingInfo): RelationalTypeMapping | undefined;
|
|
201
|
+
ParseStoreTypeName(storeTypeName: string, unicode: Nullable<System_Internal.Boolean>, size: Nullable<System_Internal.Int32>, precision: Nullable<System_Internal.Int32>, scale: Nullable<System_Internal.Int32>): string | undefined;
|
|
188
202
|
}
|
|
189
203
|
|
|
190
204
|
|