@tsonic/efcore-npgsql 0.1.2 → 10.0.1
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/bindings.json +8128 -11135
- package/Microsoft.EntityFrameworkCore/internal/index.d.ts +604 -604
- package/Microsoft.EntityFrameworkCore.Diagnostics/bindings.json +29 -180
- package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +16 -16
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/bindings.json +18 -15
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.DependencyInjection/bindings.json +28 -26
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +2 -2
- package/Npgsql/bindings.json +10951 -18969
- package/Npgsql/internal/index.d.ts +1044 -1044
- package/Npgsql.BackendMessages/bindings.json +26 -39
- package/Npgsql.BackendMessages/internal/index.d.ts +3 -3
- package/Npgsql.EntityFrameworkCore.PostgreSQL/bindings.json +9 -66
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/bindings.json +93 -174
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/internal/index.d.ts +12 -12
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Diagnostics.Internal/bindings.json +26 -201
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Diagnostics.Internal/internal/index.d.ts +17 -17
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Extensions.Internal/bindings.json +34 -48
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Extensions.Internal/internal/index.d.ts +4 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/bindings.json +124 -217
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/internal/index.d.ts +17 -17
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/bindings.json +335 -693
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/internal/index.d.ts +55 -55
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/bindings.json +390 -712
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/internal/index.d.ts +56 -56
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata/bindings.json +322 -703
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata/internal/index.d.ts +62 -62
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/bindings.json +99 -193
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/internal/index.d.ts +9 -9
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal/bindings.json +155 -612
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal/internal/index.d.ts +52 -52
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/bindings.json +33 -58
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/internal/index.d.ts +4 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/bindings.json +92 -173
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/internal/index.d.ts +13 -13
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations/bindings.json +35 -72
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations/internal/index.d.ts +6 -6
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query/bindings.json +129 -234
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query/internal/index.d.ts +20 -20
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.ExpressionTranslators.Internal/bindings.json +421 -864
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.ExpressionTranslators.Internal/internal/index.d.ts +38 -38
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions/bindings.json +41 -345
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions/internal/index.d.ts +30 -30
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/bindings.json +952 -2015
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/internal/index.d.ts +152 -152
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/bindings.json +240 -523
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/internal/index.d.ts +21 -21
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal/bindings.json +33 -61
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal/internal/index.d.ts +3 -3
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/bindings.json +276 -544
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/internal/index.d.ts +36 -36
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json/bindings.json +60 -110
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json/internal/index.d.ts +8 -8
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/bindings.json +1549 -4016
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/internal/index.d.ts +159 -159
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion/bindings.json +14 -34
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion/internal/index.d.ts +1 -1
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/bindings.json +93 -187
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/internal/index.d.ts +10 -10
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration/bindings.json +37 -76
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration/internal/index.d.ts +4 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/bindings.json +108 -192
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/internal/index.d.ts +8 -8
- package/Npgsql.Internal/bindings.json +1671 -3264
- package/Npgsql.Internal/internal/index.d.ts +243 -243
- package/Npgsql.Internal.Postgres/bindings.json +208 -434
- package/Npgsql.Internal.Postgres/internal/index.d.ts +33 -33
- package/Npgsql.NameTranslation/bindings.json +61 -116
- package/Npgsql.NameTranslation/internal/index.d.ts +5 -5
- package/Npgsql.PostgresTypes/bindings.json +175 -1000
- package/Npgsql.PostgresTypes/internal/index.d.ts +19 -19
- package/Npgsql.Replication/bindings.json +325 -1072
- package/Npgsql.Replication/internal/index.d.ts +46 -46
- package/Npgsql.Replication.Internal/bindings.json +44 -73
- package/Npgsql.Replication.Internal/internal/index.d.ts +5 -5
- package/Npgsql.Replication.PgOutput/bindings.json +191 -537
- package/Npgsql.Replication.PgOutput/internal/index.d.ts +30 -30
- package/Npgsql.Replication.PgOutput.Messages/bindings.json +662 -2866
- package/Npgsql.Replication.PgOutput.Messages/internal/index.d.ts +82 -82
- package/Npgsql.Replication.TestDecoding/bindings.json +91 -268
- package/Npgsql.Replication.TestDecoding/internal/index.d.ts +13 -13
- package/Npgsql.Schema/bindings.json +149 -322
- package/Npgsql.Schema/internal/index.d.ts +28 -28
- package/Npgsql.TypeMapping/bindings.json +92 -153
- package/Npgsql.TypeMapping/internal/index.d.ts +13 -13
- package/Npgsql.Util/bindings.json +9 -1
- package/NpgsqlTypes/bindings.json +1569 -4426
- package/NpgsqlTypes/internal/index.d.ts +280 -280
- package/__build/scripts/generate.sh +4 -4
- package/__internal/extensions/index.d.ts +71 -71
- package/package.json +5 -5
- package/Microsoft.EntityFrameworkCore/internal/metadata.json +0 -10154
- package/Microsoft.EntityFrameworkCore.Diagnostics/internal/metadata.json +0 -172
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/metadata.json +0 -49
- package/Microsoft.Extensions.DependencyInjection/internal/metadata.json +0 -63
- package/Npgsql/internal/metadata.json +0 -15514
- package/Npgsql.BackendMessages/internal/metadata.json +0 -72
- package/Npgsql.EntityFrameworkCore.PostgreSQL/internal/metadata.json +0 -60
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/internal/metadata.json +0 -269
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Diagnostics.Internal/internal/metadata.json +0 -184
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Extensions.Internal/internal/metadata.json +0 -125
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/internal/metadata.json +0 -342
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/internal/metadata.json +0 -985
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/internal/metadata.json +0 -1064
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata/internal/metadata.json +0 -990
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/internal/metadata.json +0 -317
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal/internal/metadata.json +0 -664
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/internal/metadata.json +0 -95
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/internal/metadata.json +0 -262
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations/internal/metadata.json +0 -114
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query/internal/metadata.json +0 -351
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.ExpressionTranslators.Internal/internal/metadata.json +0 -1349
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions/internal/metadata.json +0 -304
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/internal/metadata.json +0 -2783
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/internal/metadata.json +0 -806
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal/internal/metadata.json +0 -102
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/internal/metadata.json +0 -807
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json/internal/metadata.json +0 -186
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/internal/metadata.json +0 -4823
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion/internal/metadata.json +0 -51
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/internal/metadata.json +0 -341
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration/internal/metadata.json +0 -118
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/internal/metadata.json +0 -323
- package/Npgsql.Internal/internal/metadata.json +0 -4555
- package/Npgsql.Internal.Postgres/internal/metadata.json +0 -619
- package/Npgsql.NameTranslation/internal/metadata.json +0 -173
- package/Npgsql.PostgresTypes/internal/metadata.json +0 -480
- package/Npgsql.Replication/internal/metadata.json +0 -972
- package/Npgsql.Replication.Internal/internal/metadata.json +0 -119
- package/Npgsql.Replication.PgOutput/internal/metadata.json +0 -644
- package/Npgsql.Replication.PgOutput.Messages/internal/metadata.json +0 -1905
- package/Npgsql.Replication.TestDecoding/internal/metadata.json +0 -283
- package/Npgsql.Schema/internal/metadata.json +0 -451
- package/Npgsql.TypeMapping/internal/metadata.json +0 -248
- package/Npgsql.Util/internal/metadata.json +0 -24
- package/NpgsqlTypes/internal/metadata.json +0 -5014
|
@@ -27,22 +27,22 @@ import type { CancellationToken } from "@tsonic/dotnet/System.Threading.js";
|
|
|
27
27
|
import type { Task, ValueTask } from "@tsonic/dotnet/System.Threading.Tasks.js";
|
|
28
28
|
|
|
29
29
|
export enum DataFormat {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
Binary = 0,
|
|
31
|
+
Text = 1
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
export enum MatchRequirement {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
All = 0,
|
|
37
|
+
Single = 1,
|
|
38
|
+
DataTypeName = 2
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
export enum SizeKind {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
Unknown = 0,
|
|
44
|
+
Exact = 1,
|
|
45
|
+
UpperBound = 2
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
|
|
@@ -50,54 +50,54 @@ export type TypeInfoFactory = (options: PgSerializerOptions, mapping: TypeInfoMa
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
export interface IDbTypeResolver$instance {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
GetDataTypeName(dbType: DbType, type: Type): string | undefined;
|
|
54
|
+
GetDbType(dataTypeName: DataTypeName): Nullable<DbType>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
export type IDbTypeResolver = IDbTypeResolver$instance;
|
|
59
59
|
|
|
60
60
|
export interface INpgsqlDatabaseInfoFactory$instance {
|
|
61
|
-
|
|
61
|
+
Load(conn: NpgsqlConnector, timeout: NpgsqlTimeout, async: boolean): Task<NpgsqlDatabaseInfo | undefined>;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
export type INpgsqlDatabaseInfoFactory = INpgsqlDatabaseInfoFactory$instance;
|
|
66
66
|
|
|
67
67
|
export interface IPgTypeInfoResolver$instance {
|
|
68
|
-
|
|
68
|
+
GetTypeInfo(type: Type, dataTypeName: Nullable<DataTypeName>, options: PgSerializerOptions): PgTypeInfo | undefined;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
export type IPgTypeInfoResolver = IPgTypeInfoResolver$instance;
|
|
73
73
|
|
|
74
74
|
export interface BufferRequirements$instance {
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
readonly Read: Size;
|
|
76
|
+
readonly Write: Size;
|
|
77
|
+
Combine(read: Size, write: Size): BufferRequirements;
|
|
78
|
+
Combine(other: BufferRequirements): BufferRequirements;
|
|
79
|
+
Combine(byteCount: int): BufferRequirements;
|
|
80
|
+
Equals(other: BufferRequirements): boolean;
|
|
81
|
+
Equals(obj: unknown): boolean;
|
|
82
|
+
GetHashCode(): int;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
export const BufferRequirements: {
|
|
87
87
|
new(): BufferRequirements;
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
readonly None: BufferRequirements;
|
|
89
|
+
readonly Value: BufferRequirements;
|
|
90
|
+
Create(read: Size, write: Size): BufferRequirements;
|
|
91
|
+
Create(value: Size): BufferRequirements;
|
|
92
|
+
CreateFixedSize(byteCount: int): BufferRequirements;
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
export type BufferRequirements = BufferRequirements$instance;
|
|
97
97
|
|
|
98
98
|
export interface NestedReadScope$instance {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
Dispose(): void;
|
|
100
|
+
DisposeAsync(): ValueTask;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
|
|
@@ -109,7 +109,7 @@ export const NestedReadScope: {
|
|
|
109
109
|
export type NestedReadScope = NestedReadScope$instance;
|
|
110
110
|
|
|
111
111
|
export interface NestedWriteScope$instance {
|
|
112
|
-
|
|
112
|
+
Dispose(): void;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
|
|
@@ -121,9 +121,9 @@ export const NestedWriteScope: {
|
|
|
121
121
|
export type NestedWriteScope = NestedWriteScope$instance;
|
|
122
122
|
|
|
123
123
|
export interface PgConverterResolution$instance {
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
|
|
124
|
+
readonly Converter: PgConverter;
|
|
125
|
+
readonly PgTypeId: PgTypeId;
|
|
126
|
+
GetConverter<T>(): PgConverter_1<T>;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
|
|
@@ -135,31 +135,31 @@ export const PgConverterResolution: {
|
|
|
135
135
|
export type PgConverterResolution = PgConverterResolution$instance;
|
|
136
136
|
|
|
137
137
|
export interface Size$instance {
|
|
138
|
-
readonly
|
|
139
|
-
readonly
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
138
|
+
readonly Kind: SizeKind;
|
|
139
|
+
readonly Value: int;
|
|
140
|
+
Combine(other: Size): Size;
|
|
141
|
+
Equals(other: Size): boolean;
|
|
142
|
+
Equals(obj: unknown): boolean;
|
|
143
|
+
GetHashCode(): int;
|
|
144
|
+
ToString(): string;
|
|
145
|
+
TryCombine(other: Size, result: Size): boolean;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
export const Size: {
|
|
150
150
|
new(): Size;
|
|
151
|
-
readonly
|
|
152
|
-
readonly
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
readonly Unknown: Size;
|
|
152
|
+
readonly Zero: Size;
|
|
153
|
+
Create(byteCount: int): Size;
|
|
154
|
+
CreateUpperBound(byteCount: int): Size;
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
export type Size = Size$instance;
|
|
159
159
|
|
|
160
160
|
export interface SizeContext$instance {
|
|
161
|
-
|
|
162
|
-
readonly
|
|
161
|
+
BufferRequirement: Size;
|
|
162
|
+
readonly Format: DataFormat;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
|
|
@@ -171,14 +171,14 @@ export const SizeContext: {
|
|
|
171
171
|
export type SizeContext = SizeContext$instance;
|
|
172
172
|
|
|
173
173
|
export interface TypeInfoMapping$instance {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
get
|
|
179
|
-
set
|
|
180
|
-
|
|
181
|
-
|
|
174
|
+
DataTypeName: string;
|
|
175
|
+
Factory: TypeInfoFactory;
|
|
176
|
+
MatchRequirement: MatchRequirement;
|
|
177
|
+
Type: Type;
|
|
178
|
+
get TypeMatchPredicate(): Func<Type | undefined, System_Internal.Boolean> | undefined;
|
|
179
|
+
set TypeMatchPredicate(value: Func<Type | undefined, System_Internal.Boolean>);
|
|
180
|
+
DataTypeNameEquals(dataTypeName: string): boolean;
|
|
181
|
+
TypeEquals(type: Type): boolean;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
|
|
@@ -190,11 +190,11 @@ export const TypeInfoMapping: {
|
|
|
190
190
|
export type TypeInfoMapping = TypeInfoMapping$instance;
|
|
191
191
|
|
|
192
192
|
export interface ValueMetadata$instance {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
get
|
|
197
|
-
set
|
|
193
|
+
BufferRequirement: Size;
|
|
194
|
+
Format: DataFormat;
|
|
195
|
+
Size: Size;
|
|
196
|
+
get WriteState(): unknown | undefined;
|
|
197
|
+
set WriteState(value: unknown);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
|
|
@@ -206,7 +206,7 @@ export const ValueMetadata: {
|
|
|
206
206
|
export type ValueMetadata = ValueMetadata$instance;
|
|
207
207
|
|
|
208
208
|
export interface DbTypeResolverFactory$instance {
|
|
209
|
-
|
|
209
|
+
CreateDbTypeResolver(databaseInfo: NpgsqlDatabaseInfo): IDbTypeResolver;
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
|
|
@@ -217,7 +217,7 @@ export const DbTypeResolverFactory: {
|
|
|
217
217
|
export type DbTypeResolverFactory = DbTypeResolverFactory$instance;
|
|
218
218
|
|
|
219
219
|
export interface DynamicTypeInfoResolver$instance {
|
|
220
|
-
|
|
220
|
+
GetTypeInfo(type: Type, dataTypeName: Nullable<DataTypeName>, options: PgSerializerOptions): PgTypeInfo | undefined;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
|
|
@@ -235,11 +235,11 @@ export type DynamicTypeInfoResolver = DynamicTypeInfoResolver$instance & __Dynam
|
|
|
235
235
|
|
|
236
236
|
|
|
237
237
|
export interface NpgsqlConnector$instance {
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
|
|
242
|
-
|
|
238
|
+
readonly DatabaseInfo: NpgsqlDatabaseInfo;
|
|
239
|
+
readonly Settings: NpgsqlConnectionStringBuilder;
|
|
240
|
+
readonly TextEncoding: Encoding;
|
|
241
|
+
CreateBatch(): NpgsqlBatch;
|
|
242
|
+
CreateCommand(cmdText?: string): NpgsqlCommand;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
|
|
@@ -251,42 +251,42 @@ export const NpgsqlConnector: {
|
|
|
251
251
|
export type NpgsqlConnector = NpgsqlConnector$instance;
|
|
252
252
|
|
|
253
253
|
export interface NpgsqlDatabaseInfo$instance {
|
|
254
|
-
readonly
|
|
255
|
-
readonly
|
|
256
|
-
readonly
|
|
257
|
-
readonly
|
|
258
|
-
readonly
|
|
259
|
-
readonly
|
|
260
|
-
readonly
|
|
261
|
-
readonly
|
|
262
|
-
readonly
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
265
|
-
readonly
|
|
266
|
-
readonly
|
|
267
|
-
readonly
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
254
|
+
readonly HasIntegerDateTimes: boolean;
|
|
255
|
+
readonly Host: string;
|
|
256
|
+
readonly Name: string;
|
|
257
|
+
readonly Port: int;
|
|
258
|
+
readonly ServerVersion: string;
|
|
259
|
+
readonly SupportsAdvisoryLocks: boolean;
|
|
260
|
+
readonly SupportsCloseAll: boolean;
|
|
261
|
+
readonly SupportsDiscard: boolean;
|
|
262
|
+
readonly SupportsDiscardSequences: boolean;
|
|
263
|
+
readonly SupportsDiscardTemp: boolean;
|
|
264
|
+
readonly SupportsEnumTypes: boolean;
|
|
265
|
+
readonly SupportsMultirangeTypes: boolean;
|
|
266
|
+
readonly SupportsRangeTypes: boolean;
|
|
267
|
+
readonly SupportsTransactions: boolean;
|
|
268
|
+
readonly SupportsUnlisten: boolean;
|
|
269
|
+
readonly Version: Version;
|
|
270
|
+
GetPostgresType(oid: uint): PostgresType;
|
|
271
|
+
GetPostgresType(pgName: string): PostgresType;
|
|
272
|
+
TryGetPostgresTypeByName(pgName: string, pgType: PostgresType): boolean;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
|
|
276
276
|
export const NpgsqlDatabaseInfo: {
|
|
277
|
-
|
|
277
|
+
RegisterFactory(factory: INpgsqlDatabaseInfoFactory): void;
|
|
278
278
|
};
|
|
279
279
|
|
|
280
280
|
|
|
281
281
|
export type NpgsqlDatabaseInfo = NpgsqlDatabaseInfo$instance;
|
|
282
282
|
|
|
283
283
|
export interface PgBufferedConverter_1$instance<T> extends PgConverter_1<T> {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
284
|
+
GetSize(context: SizeContext, value: T, writeState: unknown): Size;
|
|
285
|
+
Read(reader: PgReader): T;
|
|
286
|
+
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask<T>;
|
|
287
|
+
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask<T>;
|
|
288
|
+
Write(writer: PgWriter, value: T): void;
|
|
289
|
+
WriteAsync(writer: PgWriter, value: T, cancellationToken?: CancellationToken): ValueTask;
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
|
|
@@ -297,8 +297,8 @@ export const PgBufferedConverter_1: {
|
|
|
297
297
|
export type PgBufferedConverter_1<T> = PgBufferedConverter_1$instance<T>;
|
|
298
298
|
|
|
299
299
|
export interface PgConverter$instance {
|
|
300
|
-
readonly
|
|
301
|
-
|
|
300
|
+
readonly IsDbNullable: boolean;
|
|
301
|
+
CanConvert(format: DataFormat, bufferRequirements: BufferRequirements): boolean;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
|
|
@@ -309,12 +309,12 @@ export const PgConverter: {
|
|
|
309
309
|
export type PgConverter = PgConverter$instance;
|
|
310
310
|
|
|
311
311
|
export interface PgConverter_1$instance<T> extends PgConverter {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
312
|
+
GetSize(context: SizeContext, value: T, writeState: unknown): Size;
|
|
313
|
+
IsDbNull(value: T, writeState: unknown): boolean;
|
|
314
|
+
Read(reader: PgReader): T;
|
|
315
|
+
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask<T>;
|
|
316
|
+
Write(writer: PgWriter, value: T): void;
|
|
317
|
+
WriteAsync(writer: PgWriter, value: T, cancellationToken?: CancellationToken): ValueTask;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
|
|
@@ -325,8 +325,8 @@ export const PgConverter_1: {
|
|
|
325
325
|
export type PgConverter_1<T> = PgConverter_1$instance<T>;
|
|
326
326
|
|
|
327
327
|
export interface PgConverterResolver$instance {
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
Get(field: Field): PgConverterResolution;
|
|
329
|
+
GetDefault(pgTypeId: Nullable<PgTypeId>): PgConverterResolution;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
|
|
@@ -337,8 +337,8 @@ export const PgConverterResolver: {
|
|
|
337
337
|
export type PgConverterResolver = PgConverterResolver$instance;
|
|
338
338
|
|
|
339
339
|
export interface PgConverterResolver_1$instance<T> extends PgConverterResolver {
|
|
340
|
-
|
|
341
|
-
|
|
340
|
+
Get(value: T, expectedPgTypeId: Nullable<PgTypeId>): Nullable<PgConverterResolution>;
|
|
341
|
+
Get(field: Field): PgConverterResolution;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
|
|
@@ -349,41 +349,41 @@ export const PgConverterResolver_1: {
|
|
|
349
349
|
export type PgConverterResolver_1<T> = PgConverterResolver_1$instance<T>;
|
|
350
350
|
|
|
351
351
|
export interface PgReader$instance {
|
|
352
|
-
readonly
|
|
353
|
-
readonly
|
|
354
|
-
readonly
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
352
|
+
readonly Current: ValueMetadata;
|
|
353
|
+
readonly CurrentRemaining: int;
|
|
354
|
+
readonly IsResumed: boolean;
|
|
355
|
+
BeginNestedRead(size: int, bufferRequirement: Size): NestedReadScope;
|
|
356
|
+
BeginNestedReadAsync(size: int, bufferRequirement: Size, cancellationToken?: CancellationToken): ValueTask<NestedReadScope>;
|
|
357
|
+
Buffer(bufferRequirement: Size): void;
|
|
358
|
+
Buffer(byteCount: int): void;
|
|
359
|
+
BufferAsync(bufferRequirement: Size, cancellationToken: CancellationToken): ValueTask;
|
|
360
|
+
BufferAsync(byteCount: int, cancellationToken: CancellationToken): ValueTask;
|
|
361
|
+
Consume(count?: Nullable<System_Internal.Int32>): void;
|
|
362
|
+
ConsumeAsync(count?: Nullable<System_Internal.Int32>, cancellationToken?: CancellationToken): ValueTask;
|
|
363
|
+
GetStream(length?: Nullable<System_Internal.Int32>): Stream;
|
|
364
|
+
GetTextReader(encoding: Encoding): TextReader;
|
|
365
|
+
GetTextReaderAsync(encoding: Encoding, cancellationToken: CancellationToken): ValueTask<TextReader>;
|
|
366
|
+
Read(destination: Span<System_Internal.Byte>): void;
|
|
367
|
+
ReadByte(): byte;
|
|
368
|
+
ReadBytes(buffer: Span<System_Internal.Byte>): void;
|
|
369
|
+
ReadBytes(count: int): ReadOnlySequence<System_Internal.Byte>;
|
|
370
|
+
ReadBytesAsync(buffer: Memory<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask;
|
|
371
|
+
ReadBytesAsync(count: int, cancellationToken?: CancellationToken): ValueTask<ReadOnlySequence<System_Internal.Byte>>;
|
|
372
|
+
ReadDouble(): double;
|
|
373
|
+
ReadFloat(): float;
|
|
374
|
+
ReadInt16(): short;
|
|
375
|
+
ReadInt32(): int;
|
|
376
|
+
ReadInt64(): long;
|
|
377
|
+
ReadNullTerminatedString(encoding: Encoding): string;
|
|
378
|
+
ReadNullTerminatedStringAsync(encoding: Encoding, cancellationToken?: CancellationToken): ValueTask<System_Internal.String>;
|
|
379
|
+
ReadUInt16(): ushort;
|
|
380
|
+
ReadUInt32(): uint;
|
|
381
|
+
ReadUInt64(): ulong;
|
|
382
|
+
Rewind(count: int): void;
|
|
383
|
+
ShouldBuffer(bufferRequirement: Size): boolean;
|
|
384
|
+
ShouldBuffer(byteCount: int): boolean;
|
|
385
|
+
TryReadBytes(count: int, bytes: ReadOnlySpan<System_Internal.Byte>): boolean;
|
|
386
|
+
TryReadBytes(count: int, bytes: ReadOnlyMemory<System_Internal.Byte>): boolean;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
|
|
@@ -395,12 +395,12 @@ export const PgReader: {
|
|
|
395
395
|
export type PgReader = PgReader$instance;
|
|
396
396
|
|
|
397
397
|
export interface PgResolverTypeInfo$instance extends PgTypeInfo {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
398
|
+
GetConverterResolver(): PgConverterResolver;
|
|
399
|
+
GetDefaultResolution(expectedPgTypeId: Nullable<PgTypeId>): PgConverterResolution;
|
|
400
|
+
GetResolution<T>(value: T, expectedPgTypeId: Nullable<PgTypeId>): Nullable<PgConverterResolution>;
|
|
401
|
+
GetResolution(field: Field): PgConverterResolution;
|
|
402
|
+
GetResolution<T>(value: T): PgConverterResolution;
|
|
403
|
+
GetResolutionAsObject(value: unknown, expectedPgTypeId: Nullable<PgTypeId>): Nullable<PgConverterResolution>;
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
|
|
@@ -412,36 +412,36 @@ export const PgResolverTypeInfo: {
|
|
|
412
412
|
export type PgResolverTypeInfo = PgResolverTypeInfo$instance;
|
|
413
413
|
|
|
414
414
|
export interface PgSerializerOptions$instance {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
readonly
|
|
420
|
-
readonly
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
415
|
+
ArrayNullabilityMode: ArrayNullabilityMode;
|
|
416
|
+
DefaultNameTranslator: INpgsqlNameTranslator;
|
|
417
|
+
EnableDateTimeInfinityConversions: boolean;
|
|
418
|
+
TextEncoding: Encoding;
|
|
419
|
+
readonly TimeZone: string;
|
|
420
|
+
readonly TypeInfoResolver: IPgTypeInfoResolver;
|
|
421
|
+
GetArrayElementTypeId(arrayTypeId: PgTypeId): PgTypeId;
|
|
422
|
+
GetArrayTypeId(elementTypeId: PgTypeId): PgTypeId;
|
|
423
|
+
GetDataTypeName(pgTypeId: PgTypeId): DataTypeName;
|
|
424
|
+
GetDefaultTypeInfo(type: Type): PgTypeInfo | undefined;
|
|
425
|
+
GetDefaultTypeInfo(pgTypeId: PgTypeId): PgTypeInfo | undefined;
|
|
426
|
+
GetMultirangeElementTypeId(multirangeTypeId: PgTypeId): PgTypeId;
|
|
427
|
+
GetMultirangeTypeId(rangeTypeId: PgTypeId): PgTypeId;
|
|
428
|
+
GetRangeSubtypeTypeId(rangeTypeId: PgTypeId): PgTypeId;
|
|
429
|
+
GetRangeTypeId(subtypeTypeId: PgTypeId): PgTypeId;
|
|
430
|
+
GetTypeInfo(type: Type, pgTypeId: PgTypeId): PgTypeInfo | undefined;
|
|
431
|
+
TryGetDataTypeName(pgTypeId: PgTypeId, dataTypeName: DataTypeName): boolean;
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
|
|
435
435
|
export const PgSerializerOptions: {
|
|
436
436
|
new(): PgSerializerOptions;
|
|
437
|
-
|
|
437
|
+
IsWellKnownTextType(type: Type): boolean;
|
|
438
438
|
};
|
|
439
439
|
|
|
440
440
|
|
|
441
441
|
export type PgSerializerOptions = PgSerializerOptions$instance;
|
|
442
442
|
|
|
443
443
|
export interface PgStreamingConverter_1$instance<T> extends PgConverter_1<T> {
|
|
444
|
-
|
|
444
|
+
CanConvert(format: DataFormat, bufferRequirements: BufferRequirements): boolean;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
|
|
@@ -452,15 +452,15 @@ export const PgStreamingConverter_1: {
|
|
|
452
452
|
export type PgStreamingConverter_1<T> = PgStreamingConverter_1$instance<T>;
|
|
453
453
|
|
|
454
454
|
export interface PgTypeInfo$instance {
|
|
455
|
-
readonly
|
|
456
|
-
readonly
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
readonly
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
455
|
+
readonly Options: PgSerializerOptions;
|
|
456
|
+
readonly PgTypeId: Nullable<PgTypeId>;
|
|
457
|
+
PreferredFormat: Nullable<DataFormat>;
|
|
458
|
+
SupportsReading: boolean;
|
|
459
|
+
SupportsWriting: boolean;
|
|
460
|
+
readonly Type: Type;
|
|
461
|
+
GetBufferRequirements(converter: PgConverter, format: DataFormat): Nullable<BufferRequirements>;
|
|
462
|
+
GetObjectResolution(value: unknown): PgConverterResolution;
|
|
463
|
+
GetResolution<T>(value: T): PgConverterResolution;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
|
|
@@ -472,12 +472,12 @@ export const PgTypeInfo: {
|
|
|
472
472
|
export type PgTypeInfo = PgTypeInfo$instance;
|
|
473
473
|
|
|
474
474
|
export interface PgTypeInfoResolverFactory$instance {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
475
|
+
CreateArrayResolver(): IPgTypeInfoResolver | undefined;
|
|
476
|
+
CreateMultirangeArrayResolver(): IPgTypeInfoResolver | undefined;
|
|
477
|
+
CreateMultirangeResolver(): IPgTypeInfoResolver | undefined;
|
|
478
|
+
CreateRangeArrayResolver(): IPgTypeInfoResolver | undefined;
|
|
479
|
+
CreateRangeResolver(): IPgTypeInfoResolver | undefined;
|
|
480
|
+
CreateResolver(): IPgTypeInfoResolver;
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
|
|
@@ -488,28 +488,28 @@ export const PgTypeInfoResolverFactory: {
|
|
|
488
488
|
export type PgTypeInfoResolverFactory = PgTypeInfoResolverFactory$instance;
|
|
489
489
|
|
|
490
490
|
export interface PgWriter$instance {
|
|
491
|
-
readonly
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
491
|
+
readonly Current: ValueMetadata;
|
|
492
|
+
BeginNestedWrite(bufferRequirement: Size, byteCount: int, state: unknown): NestedWriteScope;
|
|
493
|
+
BeginNestedWriteAsync(bufferRequirement: Size, byteCount: int, state: unknown, cancellationToken?: CancellationToken): ValueTask<NestedWriteScope>;
|
|
494
|
+
Flush(timeout?: TimeSpan): void;
|
|
495
|
+
FlushAsync(cancellationToken?: CancellationToken): ValueTask;
|
|
496
|
+
GetStream(allowMixedIO?: boolean): Stream;
|
|
497
|
+
ShouldFlush(bufferRequirement: Size): boolean;
|
|
498
|
+
ShouldFlush(byteCount: int): boolean;
|
|
499
|
+
WriteAsOid(pgTypeId: PgTypeId): void;
|
|
500
|
+
WriteByte(value: byte): void;
|
|
501
|
+
WriteBytes(buffer: ReadOnlySpan<System_Internal.Byte>): void;
|
|
502
|
+
WriteBytesAsync(buffer: ReadOnlyMemory<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask;
|
|
503
|
+
WriteChars(data: ReadOnlySpan<System_Internal.Char>, encoding: Encoding): void;
|
|
504
|
+
WriteCharsAsync(data: ReadOnlyMemory<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): ValueTask;
|
|
505
|
+
WriteDouble(value: double): void;
|
|
506
|
+
WriteFloat(value: float): void;
|
|
507
|
+
WriteInt16(value: short): void;
|
|
508
|
+
WriteInt32(value: int): void;
|
|
509
|
+
WriteInt64(value: long): void;
|
|
510
|
+
WriteUInt16(value: ushort): void;
|
|
511
|
+
WriteUInt32(value: uint): void;
|
|
512
|
+
WriteUInt64(value: ulong): void;
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
|
|
@@ -521,40 +521,40 @@ export const PgWriter: {
|
|
|
521
521
|
export type PgWriter = PgWriter$instance;
|
|
522
522
|
|
|
523
523
|
export interface TypeInfoMappingCollection$instance {
|
|
524
|
-
readonly
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
524
|
+
readonly Items: IReadOnlyList<TypeInfoMapping>;
|
|
525
|
+
Add(mapping: TypeInfoMapping): void;
|
|
526
|
+
AddArrayType<TElement>(elementDataTypeName: string): void;
|
|
527
|
+
AddArrayType<TElement>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
528
|
+
AddArrayType<TElement>(elementMapping: TypeInfoMapping): void;
|
|
529
|
+
AddArrayType<TElement>(elementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
530
|
+
AddPolymorphicResolverArrayType(elementDataTypeName: string, elementToArrayConverterFactory: Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>>): void;
|
|
531
|
+
AddPolymorphicResolverArrayType(elementMapping: TypeInfoMapping, elementToArrayConverterFactory: Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>>): void;
|
|
532
|
+
AddRange(collection: TypeInfoMappingCollection): void;
|
|
533
|
+
AddResolverArrayType<TElement>(elementDataTypeName: string): void;
|
|
534
|
+
AddResolverArrayType<TElement>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
535
|
+
AddResolverArrayType<TElement>(elementMapping: TypeInfoMapping): void;
|
|
536
|
+
AddResolverArrayType<TElement>(elementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
537
|
+
AddResolverStructArrayType<TElement extends unknown>(elementDataTypeName: string): void;
|
|
538
|
+
AddResolverStructArrayType<TElement extends unknown>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
539
|
+
AddResolverStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping): void;
|
|
540
|
+
AddResolverStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
541
|
+
AddResolverStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
542
|
+
AddResolverStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
543
|
+
AddResolverStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
544
|
+
AddResolverType<T>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
545
|
+
AddResolverType<T>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
546
|
+
AddResolverType<T>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
547
|
+
AddStructArrayType<TElement extends unknown>(elementDataTypeName: string): void;
|
|
548
|
+
AddStructArrayType<TElement extends unknown>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
549
|
+
AddStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping): void;
|
|
550
|
+
AddStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
551
|
+
AddStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
552
|
+
AddStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
553
|
+
AddStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
554
|
+
AddType<T>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
555
|
+
AddType<T>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
556
|
+
AddType<T>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
557
|
+
Find(type: Type, dataTypeName: Nullable<DataTypeName>, options: PgSerializerOptions): PgTypeInfo | undefined;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
|
|
@@ -563,27 +563,27 @@ export const TypeInfoMappingCollection: {
|
|
|
563
563
|
new(): TypeInfoMappingCollection;
|
|
564
564
|
new(baseCollection: TypeInfoMappingCollection): TypeInfoMappingCollection;
|
|
565
565
|
new(items: IEnumerable<TypeInfoMapping>): TypeInfoMappingCollection;
|
|
566
|
-
|
|
566
|
+
IsArrayLikeType(type: Type, elementType: Type): boolean;
|
|
567
567
|
};
|
|
568
568
|
|
|
569
569
|
|
|
570
570
|
export type TypeInfoMappingCollection = TypeInfoMappingCollection$instance;
|
|
571
571
|
|
|
572
572
|
export abstract class PgConverterFactory$instance {
|
|
573
|
-
static
|
|
574
|
-
static
|
|
575
|
-
static
|
|
576
|
-
static
|
|
573
|
+
static CreateArrayMultirangeConverter<T>(rangeConverter: PgConverter_1<T>, options: PgSerializerOptions): PgConverter_1<T[]>;
|
|
574
|
+
static CreateListMultirangeConverter<T>(rangeConverter: PgConverter_1<T>, options: PgSerializerOptions): PgConverter_1<List<T>>;
|
|
575
|
+
static CreatePolymorphicArrayConverter<TBase>(arrayConverterFactory: Func<PgConverter_1<TBase>>, nullableArrayConverterFactory: Func<PgConverter_1<TBase>>, options: PgSerializerOptions): PgConverter_1<TBase>;
|
|
576
|
+
static CreateRangeConverter<T>(subTypeConverter: PgConverter_1<T>, options: PgSerializerOptions): PgConverter_1<NpgsqlRange_1<T>>;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
|
|
580
580
|
export type PgConverterFactory = PgConverterFactory$instance;
|
|
581
581
|
|
|
582
582
|
export abstract class TypeInfoMappingHelpers$instance {
|
|
583
|
-
static
|
|
584
|
-
static
|
|
585
|
-
static
|
|
586
|
-
static
|
|
583
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, converter: PgConverter, preferredFormat?: Nullable<DataFormat>, supportsWriting?: boolean): PgTypeInfo;
|
|
584
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, converter: PgConverter): PgTypeInfo;
|
|
585
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, resolver: PgConverterResolver, includeDataTypeName: boolean, preferredFormat?: Nullable<DataFormat>, supportsWriting?: boolean): PgResolverTypeInfo;
|
|
586
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, resolver: PgConverterResolver, includeDataTypeName: boolean): PgResolverTypeInfo;
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
|