@tsonic/efcore-npgsql 0.1.2 → 10.0.2
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 +8946 -11216
- package/Microsoft.EntityFrameworkCore/internal/index.d.ts +604 -604
- package/Microsoft.EntityFrameworkCore.Diagnostics/bindings.json +49 -180
- package/Microsoft.EntityFrameworkCore.Diagnostics/internal/index.d.ts +16 -16
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/bindings.json +23 -15
- package/Microsoft.EntityFrameworkCore.Metadata.Internal/internal/index.d.ts +1 -1
- package/Microsoft.Extensions.DependencyInjection/bindings.json +34 -26
- package/Microsoft.Extensions.DependencyInjection/internal/index.d.ts +2 -2
- package/Npgsql/bindings.json +14579 -19539
- package/Npgsql/internal/index.d.ts +1182 -1062
- package/Npgsql.BackendMessages/bindings.json +33 -39
- package/Npgsql.BackendMessages/internal/index.d.ts +3 -3
- package/Npgsql.EntityFrameworkCore.PostgreSQL/bindings.json +48 -67
- package/Npgsql.EntityFrameworkCore.PostgreSQL/internal/index.d.ts +7 -2
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/bindings.json +272 -174
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/internal/index.d.ts +29 -14
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Diagnostics.Internal/bindings.json +48 -201
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Diagnostics.Internal/internal/index.d.ts +17 -17
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Extensions.Internal/bindings.json +42 -48
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Extensions.Internal/internal/index.d.ts +4 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/bindings.json +183 -218
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/internal/index.d.ts +25 -20
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/bindings.json +606 -705
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/internal/index.d.ts +82 -58
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.d.ts +1 -1
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.d.ts +2 -2
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/bindings.json +504 -737
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/internal/index.d.ts +56 -58
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata/bindings.json +468 -699
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata/internal/index.d.ts +62 -62
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/bindings.json +579 -197
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/internal/index.d.ts +59 -19
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions.d.ts +4 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal/bindings.json +240 -612
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal/internal/index.d.ts +52 -52
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/bindings.json +788 -58
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/internal/index.d.ts +51 -9
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/bindings.json +186 -173
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/internal/index.d.ts +23 -16
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.d.ts +2 -2
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations/bindings.json +77 -72
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations/internal/index.d.ts +6 -6
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.d.ts +5 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query/bindings.json +160 -234
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query/internal/index.d.ts +20 -20
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.ExpressionTranslators.Internal/bindings.json +831 -864
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.ExpressionTranslators.Internal/internal/index.d.ts +38 -38
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions/bindings.json +94 -345
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions/internal/index.d.ts +30 -30
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/bindings.json +2021 -2000
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/internal/index.d.ts +255 -167
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/bindings.json +2408 -631
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/internal/index.d.ts +178 -38
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal.d.ts +6 -5
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal/bindings.json +58 -61
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal/internal/index.d.ts +3 -3
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/bindings.json +780 -544
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/internal/index.d.ts +79 -46
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json/bindings.json +83 -110
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json/internal/index.d.ts +8 -8
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/bindings.json +5272 -3851
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/internal/index.d.ts +594 -212
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.d.ts +5 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion/bindings.json +30 -34
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion/internal/index.d.ts +1 -1
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/bindings.json +349 -188
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/internal/index.d.ts +39 -15
- package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal.d.ts +5 -2
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration/bindings.json +57 -76
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration/internal/index.d.ts +4 -4
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/bindings.json +245 -193
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/internal/index.d.ts +24 -11
- package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal.d.ts +3 -1
- package/Npgsql.EntityFrameworkCore.PostgreSQL.d.ts +1 -1
- package/Npgsql.Internal/bindings.json +2550 -3274
- package/Npgsql.Internal/internal/index.d.ts +282 -248
- package/Npgsql.Internal.Postgres/bindings.json +289 -434
- package/Npgsql.Internal.Postgres/internal/index.d.ts +33 -33
- package/Npgsql.Internal.d.ts +1 -1
- package/Npgsql.NameTranslation/bindings.json +91 -116
- package/Npgsql.NameTranslation/internal/index.d.ts +5 -5
- package/Npgsql.PostgresTypes/bindings.json +289 -982
- package/Npgsql.PostgresTypes/internal/index.d.ts +28 -25
- package/Npgsql.Replication/bindings.json +486 -1078
- package/Npgsql.Replication/internal/index.d.ts +47 -46
- package/Npgsql.Replication.Internal/bindings.json +65 -69
- package/Npgsql.Replication.Internal/internal/index.d.ts +6 -5
- package/Npgsql.Replication.PgOutput/bindings.json +344 -536
- package/Npgsql.Replication.PgOutput/internal/index.d.ts +31 -30
- package/Npgsql.Replication.PgOutput.Messages/bindings.json +1176 -2950
- package/Npgsql.Replication.PgOutput.Messages/internal/index.d.ts +85 -82
- package/Npgsql.Replication.TestDecoding/bindings.json +131 -270
- package/Npgsql.Replication.TestDecoding/internal/index.d.ts +13 -13
- package/Npgsql.Schema/bindings.json +236 -376
- package/Npgsql.Schema/internal/index.d.ts +34 -28
- package/Npgsql.TypeMapping/bindings.json +109 -153
- package/Npgsql.TypeMapping/internal/index.d.ts +13 -13
- package/Npgsql.Util/bindings.json +13 -1
- package/Npgsql.d.ts +1 -1
- package/NpgsqlTypes/bindings.json +2306 -4296
- package/NpgsqlTypes/internal/index.d.ts +282 -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
|
@@ -19,7 +19,7 @@ import type { IEnumerable, IReadOnlyList, List } from "@tsonic/dotnet/System.Col
|
|
|
19
19
|
import type { DbType } from "@tsonic/dotnet/System.Data.js";
|
|
20
20
|
import type { Stream, TextReader } from "@tsonic/dotnet/System.IO.js";
|
|
21
21
|
import * as System_Internal from "@tsonic/dotnet/System.js";
|
|
22
|
-
import type { AsyncCallback, Boolean as ClrBoolean, Byte, Char, Double, Enum, Func, IAsyncDisposable, IAsyncResult, ICloneable, IComparable, IConvertible, IDisposable, IEquatable, IFormattable, Int16, Int32, Int64, IntPtr, ISpanFormattable, Memory, MulticastDelegate, Nullable, Object as ClrObject, ReadOnlyMemory, ReadOnlySpan, Single, Span, String as ClrString, TimeSpan, Type, UInt16, UInt32, UInt64, ValueType, Version, Void } from "@tsonic/dotnet/System.js";
|
|
22
|
+
import type { ArgumentOutOfRangeException, AsyncCallback, Boolean as ClrBoolean, Byte, Char, Double, Enum, Func, IAsyncDisposable, IAsyncResult, ICloneable, IComparable, IConvertible, IDisposable, IEquatable, IFormattable, Int16, Int32, Int64, IntPtr, ISpanFormattable, Memory, MulticastDelegate, Nullable, Object as ClrObject, ReadOnlyMemory, ReadOnlySpan, Single, Span, String as ClrString, TimeSpan, Type, UInt16, UInt32, UInt64, ValueType, Version, Void } from "@tsonic/dotnet/System.js";
|
|
23
23
|
import * as System_Runtime_Serialization_Internal from "@tsonic/dotnet/System.Runtime.Serialization.js";
|
|
24
24
|
import type { ISerializable } from "@tsonic/dotnet/System.Runtime.Serialization.js";
|
|
25
25
|
import type { Encoding } from "@tsonic/dotnet/System.Text.js";
|
|
@@ -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,22 +206,33 @@ 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
|
|
|
213
213
|
export const DbTypeResolverFactory: {
|
|
214
|
+
new(): DbTypeResolverFactory;
|
|
214
215
|
};
|
|
215
216
|
|
|
216
217
|
|
|
217
218
|
export type DbTypeResolverFactory = DbTypeResolverFactory$instance;
|
|
218
219
|
|
|
219
|
-
export
|
|
220
|
-
|
|
220
|
+
export abstract class DynamicTypeInfoResolver$protected {
|
|
221
|
+
protected abstract GetMappings(type: Type, dataTypeName: DataTypeName, options: PgSerializerOptions): DynamicTypeInfoResolver_DynamicMappingCollection | undefined;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
export interface DynamicTypeInfoResolver$instance extends DynamicTypeInfoResolver$protected {
|
|
226
|
+
GetTypeInfo(type: Type, dataTypeName: Nullable<DataTypeName>, options: PgSerializerOptions): PgTypeInfo | undefined;
|
|
221
227
|
}
|
|
222
228
|
|
|
223
229
|
|
|
224
230
|
export const DynamicTypeInfoResolver: {
|
|
231
|
+
new(): DynamicTypeInfoResolver;
|
|
232
|
+
CreateCollection(baseCollection?: TypeInfoMappingCollection): DynamicTypeInfoResolver_DynamicMappingCollection;
|
|
233
|
+
IsArrayDataTypeName(dataTypeName: DataTypeName, options: PgSerializerOptions, elementDataTypeName: DataTypeName): boolean;
|
|
234
|
+
IsArrayLikeType(type: Type, elementType: Type): boolean;
|
|
235
|
+
IsTypeOrNullableOfType(type: Type, predicate: Func<Type, System_Internal.Boolean>, matchedType: Type): boolean;
|
|
225
236
|
};
|
|
226
237
|
|
|
227
238
|
|
|
@@ -235,11 +246,11 @@ export type DynamicTypeInfoResolver = DynamicTypeInfoResolver$instance & __Dynam
|
|
|
235
246
|
|
|
236
247
|
|
|
237
248
|
export interface NpgsqlConnector$instance {
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
249
|
+
readonly DatabaseInfo: NpgsqlDatabaseInfo;
|
|
250
|
+
readonly Settings: NpgsqlConnectionStringBuilder;
|
|
251
|
+
TextEncoding: Encoding;
|
|
252
|
+
CreateBatch(): NpgsqlBatch;
|
|
253
|
+
CreateCommand(cmdText?: string): NpgsqlCommand;
|
|
243
254
|
}
|
|
244
255
|
|
|
245
256
|
|
|
@@ -250,55 +261,70 @@ export const NpgsqlConnector: {
|
|
|
250
261
|
|
|
251
262
|
export type NpgsqlConnector = NpgsqlConnector$instance;
|
|
252
263
|
|
|
253
|
-
export
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
readonly
|
|
261
|
-
readonly
|
|
262
|
-
readonly
|
|
263
|
-
readonly
|
|
264
|
-
readonly
|
|
265
|
-
readonly
|
|
266
|
-
readonly
|
|
267
|
-
readonly
|
|
268
|
-
readonly
|
|
269
|
-
readonly
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
264
|
+
export abstract class NpgsqlDatabaseInfo$protected {
|
|
265
|
+
protected abstract GetTypes(): IEnumerable<PostgresType>;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
export interface NpgsqlDatabaseInfo$instance extends NpgsqlDatabaseInfo$protected {
|
|
270
|
+
HasIntegerDateTimes: boolean;
|
|
271
|
+
readonly Host: string;
|
|
272
|
+
readonly Name: string;
|
|
273
|
+
readonly Port: int;
|
|
274
|
+
readonly ServerVersion: string;
|
|
275
|
+
readonly SupportsAdvisoryLocks: boolean;
|
|
276
|
+
readonly SupportsCloseAll: boolean;
|
|
277
|
+
readonly SupportsDiscard: boolean;
|
|
278
|
+
readonly SupportsDiscardSequences: boolean;
|
|
279
|
+
readonly SupportsDiscardTemp: boolean;
|
|
280
|
+
readonly SupportsEnumTypes: boolean;
|
|
281
|
+
readonly SupportsMultirangeTypes: boolean;
|
|
282
|
+
readonly SupportsRangeTypes: boolean;
|
|
283
|
+
SupportsTransactions: boolean;
|
|
284
|
+
readonly SupportsUnlisten: boolean;
|
|
285
|
+
readonly Version: Version;
|
|
286
|
+
GetPostgresType(oid: uint): PostgresType;
|
|
287
|
+
GetPostgresType(pgName: string): PostgresType;
|
|
288
|
+
TryGetPostgresTypeByName(pgName: string, pgType: PostgresType): boolean;
|
|
273
289
|
}
|
|
274
290
|
|
|
275
291
|
|
|
276
292
|
export const NpgsqlDatabaseInfo: {
|
|
277
|
-
|
|
293
|
+
new(host: string, port: int, databaseName: string, version: Version): NpgsqlDatabaseInfo;
|
|
294
|
+
new(host: string, port: int, databaseName: string, version: Version, serverVersion: string): NpgsqlDatabaseInfo;
|
|
295
|
+
ParseServerVersion(value: string): Version;
|
|
296
|
+
RegisterFactory(factory: INpgsqlDatabaseInfoFactory): void;
|
|
278
297
|
};
|
|
279
298
|
|
|
280
299
|
|
|
281
300
|
export type NpgsqlDatabaseInfo = NpgsqlDatabaseInfo$instance;
|
|
282
301
|
|
|
283
|
-
export
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
302
|
+
export abstract class PgBufferedConverter_1$protected<T> {
|
|
303
|
+
protected abstract ReadCore(reader: PgReader): T;
|
|
304
|
+
protected abstract WriteCore(writer: PgWriter, value: T): void;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
export interface PgBufferedConverter_1$instance<T> extends PgBufferedConverter_1$protected<T>, PgConverter_1<T> {
|
|
309
|
+
GetSize(context: SizeContext, value: T, writeState: unknown): Size;
|
|
310
|
+
Read(reader: PgReader): T;
|
|
311
|
+
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask<T>;
|
|
312
|
+
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask<T>;
|
|
313
|
+
Write(writer: PgWriter, value: T): void;
|
|
314
|
+
WriteAsync(writer: PgWriter, value: T, cancellationToken?: CancellationToken): ValueTask;
|
|
290
315
|
}
|
|
291
316
|
|
|
292
317
|
|
|
293
318
|
export const PgBufferedConverter_1: {
|
|
319
|
+
new<T>(customDbNullPredicate: boolean): PgBufferedConverter_1<T>;
|
|
294
320
|
};
|
|
295
321
|
|
|
296
322
|
|
|
297
323
|
export type PgBufferedConverter_1<T> = PgBufferedConverter_1$instance<T>;
|
|
298
324
|
|
|
299
325
|
export interface PgConverter$instance {
|
|
300
|
-
readonly
|
|
301
|
-
|
|
326
|
+
readonly IsDbNullable: boolean;
|
|
327
|
+
CanConvert(format: DataFormat, bufferRequirements: BufferRequirements): boolean;
|
|
302
328
|
}
|
|
303
329
|
|
|
304
330
|
|
|
@@ -308,13 +334,18 @@ export const PgConverter: {
|
|
|
308
334
|
|
|
309
335
|
export type PgConverter = PgConverter$instance;
|
|
310
336
|
|
|
311
|
-
export
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
337
|
+
export abstract class PgConverter_1$protected<T> {
|
|
338
|
+
protected IsDbNullValue(value: T, writeState: unknown): boolean;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
export interface PgConverter_1$instance<T> extends PgConverter_1$protected<T>, PgConverter {
|
|
343
|
+
GetSize(context: SizeContext, value: T, writeState: unknown): Size;
|
|
344
|
+
IsDbNull(value: T, writeState: unknown): boolean;
|
|
345
|
+
Read(reader: PgReader): T;
|
|
346
|
+
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask<T>;
|
|
347
|
+
Write(writer: PgWriter, value: T): void;
|
|
348
|
+
WriteAsync(writer: PgWriter, value: T, cancellationToken?: CancellationToken): ValueTask;
|
|
318
349
|
}
|
|
319
350
|
|
|
320
351
|
|
|
@@ -325,8 +356,8 @@ export const PgConverter_1: {
|
|
|
325
356
|
export type PgConverter_1<T> = PgConverter_1$instance<T>;
|
|
326
357
|
|
|
327
358
|
export interface PgConverterResolver$instance {
|
|
328
|
-
|
|
329
|
-
|
|
359
|
+
Get(field: Field): PgConverterResolution;
|
|
360
|
+
GetDefault(pgTypeId: Nullable<PgTypeId>): PgConverterResolution;
|
|
330
361
|
}
|
|
331
362
|
|
|
332
363
|
|
|
@@ -337,53 +368,54 @@ export const PgConverterResolver: {
|
|
|
337
368
|
export type PgConverterResolver = PgConverterResolver$instance;
|
|
338
369
|
|
|
339
370
|
export interface PgConverterResolver_1$instance<T> extends PgConverterResolver {
|
|
340
|
-
|
|
341
|
-
|
|
371
|
+
Get(value: T, expectedPgTypeId: Nullable<PgTypeId>): Nullable<PgConverterResolution>;
|
|
372
|
+
Get(field: Field): PgConverterResolution;
|
|
342
373
|
}
|
|
343
374
|
|
|
344
375
|
|
|
345
376
|
export const PgConverterResolver_1: {
|
|
377
|
+
new<T>(): PgConverterResolver_1<T>;
|
|
346
378
|
};
|
|
347
379
|
|
|
348
380
|
|
|
349
381
|
export type PgConverterResolver_1<T> = PgConverterResolver_1$instance<T>;
|
|
350
382
|
|
|
351
383
|
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
|
-
|
|
384
|
+
readonly Current: ValueMetadata;
|
|
385
|
+
readonly CurrentRemaining: int;
|
|
386
|
+
readonly IsResumed: boolean;
|
|
387
|
+
BeginNestedRead(size: int, bufferRequirement: Size): NestedReadScope;
|
|
388
|
+
BeginNestedReadAsync(size: int, bufferRequirement: Size, cancellationToken?: CancellationToken): ValueTask<NestedReadScope>;
|
|
389
|
+
Buffer(bufferRequirement: Size): void;
|
|
390
|
+
Buffer(byteCount: int): void;
|
|
391
|
+
BufferAsync(bufferRequirement: Size, cancellationToken: CancellationToken): ValueTask;
|
|
392
|
+
BufferAsync(byteCount: int, cancellationToken: CancellationToken): ValueTask;
|
|
393
|
+
Consume(count?: Nullable<System_Internal.Int32>): void;
|
|
394
|
+
ConsumeAsync(count?: Nullable<System_Internal.Int32>, cancellationToken?: CancellationToken): ValueTask;
|
|
395
|
+
GetStream(length?: Nullable<System_Internal.Int32>): Stream;
|
|
396
|
+
GetTextReader(encoding: Encoding): TextReader;
|
|
397
|
+
GetTextReaderAsync(encoding: Encoding, cancellationToken: CancellationToken): ValueTask<TextReader>;
|
|
398
|
+
Read(destination: Span<System_Internal.Byte>): void;
|
|
399
|
+
ReadByte(): byte;
|
|
400
|
+
ReadBytes(buffer: Span<System_Internal.Byte>): void;
|
|
401
|
+
ReadBytes(count: int): ReadOnlySequence<System_Internal.Byte>;
|
|
402
|
+
ReadBytesAsync(buffer: Memory<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask;
|
|
403
|
+
ReadBytesAsync(count: int, cancellationToken?: CancellationToken): ValueTask<ReadOnlySequence<System_Internal.Byte>>;
|
|
404
|
+
ReadDouble(): double;
|
|
405
|
+
ReadFloat(): float;
|
|
406
|
+
ReadInt16(): short;
|
|
407
|
+
ReadInt32(): int;
|
|
408
|
+
ReadInt64(): long;
|
|
409
|
+
ReadNullTerminatedString(encoding: Encoding): string;
|
|
410
|
+
ReadNullTerminatedStringAsync(encoding: Encoding, cancellationToken?: CancellationToken): ValueTask<System_Internal.String>;
|
|
411
|
+
ReadUInt16(): ushort;
|
|
412
|
+
ReadUInt32(): uint;
|
|
413
|
+
ReadUInt64(): ulong;
|
|
414
|
+
Rewind(count: int): void;
|
|
415
|
+
ShouldBuffer(bufferRequirement: Size): boolean;
|
|
416
|
+
ShouldBuffer(byteCount: int): boolean;
|
|
417
|
+
TryReadBytes(count: int, bytes: ReadOnlySpan<System_Internal.Byte>): boolean;
|
|
418
|
+
TryReadBytes(count: int, bytes: ReadOnlyMemory<System_Internal.Byte>): boolean;
|
|
387
419
|
}
|
|
388
420
|
|
|
389
421
|
|
|
@@ -395,12 +427,12 @@ export const PgReader: {
|
|
|
395
427
|
export type PgReader = PgReader$instance;
|
|
396
428
|
|
|
397
429
|
export interface PgResolverTypeInfo$instance extends PgTypeInfo {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
430
|
+
GetConverterResolver(): PgConverterResolver;
|
|
431
|
+
GetDefaultResolution(expectedPgTypeId: Nullable<PgTypeId>): PgConverterResolution;
|
|
432
|
+
GetResolution<T>(value: T, expectedPgTypeId: Nullable<PgTypeId>): Nullable<PgConverterResolution>;
|
|
433
|
+
GetResolution(field: Field): PgConverterResolution;
|
|
434
|
+
GetResolution<T>(value: T): PgConverterResolution;
|
|
435
|
+
GetResolutionAsObject(value: unknown, expectedPgTypeId: Nullable<PgTypeId>): Nullable<PgConverterResolution>;
|
|
404
436
|
}
|
|
405
437
|
|
|
406
438
|
|
|
@@ -412,55 +444,56 @@ export const PgResolverTypeInfo: {
|
|
|
412
444
|
export type PgResolverTypeInfo = PgResolverTypeInfo$instance;
|
|
413
445
|
|
|
414
446
|
export interface PgSerializerOptions$instance {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
readonly
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
447
|
+
ArrayNullabilityMode: ArrayNullabilityMode;
|
|
448
|
+
DefaultNameTranslator: INpgsqlNameTranslator;
|
|
449
|
+
EnableDateTimeInfinityConversions: boolean;
|
|
450
|
+
TextEncoding: Encoding;
|
|
451
|
+
readonly TimeZone: string;
|
|
452
|
+
TypeInfoResolver: IPgTypeInfoResolver;
|
|
453
|
+
GetArrayElementTypeId(arrayTypeId: PgTypeId): PgTypeId;
|
|
454
|
+
GetArrayTypeId(elementTypeId: PgTypeId): PgTypeId;
|
|
455
|
+
GetDataTypeName(pgTypeId: PgTypeId): DataTypeName;
|
|
456
|
+
GetDefaultTypeInfo(type: Type): PgTypeInfo | undefined;
|
|
457
|
+
GetDefaultTypeInfo(pgTypeId: PgTypeId): PgTypeInfo | undefined;
|
|
458
|
+
GetMultirangeElementTypeId(multirangeTypeId: PgTypeId): PgTypeId;
|
|
459
|
+
GetMultirangeTypeId(rangeTypeId: PgTypeId): PgTypeId;
|
|
460
|
+
GetRangeSubtypeTypeId(rangeTypeId: PgTypeId): PgTypeId;
|
|
461
|
+
GetRangeTypeId(subtypeTypeId: PgTypeId): PgTypeId;
|
|
462
|
+
GetTypeInfo(type: Type, pgTypeId: PgTypeId): PgTypeInfo | undefined;
|
|
463
|
+
TryGetDataTypeName(pgTypeId: PgTypeId, dataTypeName: DataTypeName): boolean;
|
|
432
464
|
}
|
|
433
465
|
|
|
434
466
|
|
|
435
467
|
export const PgSerializerOptions: {
|
|
436
468
|
new(): PgSerializerOptions;
|
|
437
|
-
|
|
469
|
+
IsWellKnownTextType(type: Type): boolean;
|
|
438
470
|
};
|
|
439
471
|
|
|
440
472
|
|
|
441
473
|
export type PgSerializerOptions = PgSerializerOptions$instance;
|
|
442
474
|
|
|
443
475
|
export interface PgStreamingConverter_1$instance<T> extends PgConverter_1<T> {
|
|
444
|
-
|
|
476
|
+
CanConvert(format: DataFormat, bufferRequirements: BufferRequirements): boolean;
|
|
445
477
|
}
|
|
446
478
|
|
|
447
479
|
|
|
448
480
|
export const PgStreamingConverter_1: {
|
|
481
|
+
new<T>(customDbNullPredicate: boolean): PgStreamingConverter_1<T>;
|
|
449
482
|
};
|
|
450
483
|
|
|
451
484
|
|
|
452
485
|
export type PgStreamingConverter_1<T> = PgStreamingConverter_1$instance<T>;
|
|
453
486
|
|
|
454
487
|
export interface PgTypeInfo$instance {
|
|
455
|
-
readonly
|
|
456
|
-
readonly
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
readonly
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
488
|
+
readonly Options: PgSerializerOptions;
|
|
489
|
+
readonly PgTypeId: Nullable<PgTypeId>;
|
|
490
|
+
PreferredFormat: Nullable<DataFormat>;
|
|
491
|
+
SupportsReading: boolean;
|
|
492
|
+
SupportsWriting: boolean;
|
|
493
|
+
readonly Type: Type;
|
|
494
|
+
GetBufferRequirements(converter: PgConverter, format: DataFormat): Nullable<BufferRequirements>;
|
|
495
|
+
GetObjectResolution(value: unknown): PgConverterResolution;
|
|
496
|
+
GetResolution<T>(value: T): PgConverterResolution;
|
|
464
497
|
}
|
|
465
498
|
|
|
466
499
|
|
|
@@ -472,44 +505,45 @@ export const PgTypeInfo: {
|
|
|
472
505
|
export type PgTypeInfo = PgTypeInfo$instance;
|
|
473
506
|
|
|
474
507
|
export interface PgTypeInfoResolverFactory$instance {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
508
|
+
CreateArrayResolver(): IPgTypeInfoResolver | undefined;
|
|
509
|
+
CreateMultirangeArrayResolver(): IPgTypeInfoResolver | undefined;
|
|
510
|
+
CreateMultirangeResolver(): IPgTypeInfoResolver | undefined;
|
|
511
|
+
CreateRangeArrayResolver(): IPgTypeInfoResolver | undefined;
|
|
512
|
+
CreateRangeResolver(): IPgTypeInfoResolver | undefined;
|
|
513
|
+
CreateResolver(): IPgTypeInfoResolver;
|
|
481
514
|
}
|
|
482
515
|
|
|
483
516
|
|
|
484
517
|
export const PgTypeInfoResolverFactory: {
|
|
518
|
+
new(): PgTypeInfoResolverFactory;
|
|
485
519
|
};
|
|
486
520
|
|
|
487
521
|
|
|
488
522
|
export type PgTypeInfoResolverFactory = PgTypeInfoResolverFactory$instance;
|
|
489
523
|
|
|
490
524
|
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
|
-
|
|
525
|
+
readonly Current: ValueMetadata;
|
|
526
|
+
BeginNestedWrite(bufferRequirement: Size, byteCount: int, state: unknown): NestedWriteScope;
|
|
527
|
+
BeginNestedWriteAsync(bufferRequirement: Size, byteCount: int, state: unknown, cancellationToken?: CancellationToken): ValueTask<NestedWriteScope>;
|
|
528
|
+
Flush(timeout?: TimeSpan): void;
|
|
529
|
+
FlushAsync(cancellationToken?: CancellationToken): ValueTask;
|
|
530
|
+
GetStream(allowMixedIO?: boolean): Stream;
|
|
531
|
+
ShouldFlush(bufferRequirement: Size): boolean;
|
|
532
|
+
ShouldFlush(byteCount: int): boolean;
|
|
533
|
+
WriteAsOid(pgTypeId: PgTypeId): void;
|
|
534
|
+
WriteByte(value: byte): void;
|
|
535
|
+
WriteBytes(buffer: ReadOnlySpan<System_Internal.Byte>): void;
|
|
536
|
+
WriteBytesAsync(buffer: ReadOnlyMemory<System_Internal.Byte>, cancellationToken?: CancellationToken): ValueTask;
|
|
537
|
+
WriteChars(data: ReadOnlySpan<System_Internal.Char>, encoding: Encoding): void;
|
|
538
|
+
WriteCharsAsync(data: ReadOnlyMemory<System_Internal.Char>, encoding: Encoding, cancellationToken?: CancellationToken): ValueTask;
|
|
539
|
+
WriteDouble(value: double): void;
|
|
540
|
+
WriteFloat(value: float): void;
|
|
541
|
+
WriteInt16(value: short): void;
|
|
542
|
+
WriteInt32(value: int): void;
|
|
543
|
+
WriteInt64(value: long): void;
|
|
544
|
+
WriteUInt16(value: ushort): void;
|
|
545
|
+
WriteUInt32(value: uint): void;
|
|
546
|
+
WriteUInt64(value: ulong): void;
|
|
513
547
|
}
|
|
514
548
|
|
|
515
549
|
|
|
@@ -521,40 +555,40 @@ export const PgWriter: {
|
|
|
521
555
|
export type PgWriter = PgWriter$instance;
|
|
522
556
|
|
|
523
557
|
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
|
-
|
|
558
|
+
readonly Items: IReadOnlyList<TypeInfoMapping>;
|
|
559
|
+
Add(mapping: TypeInfoMapping): void;
|
|
560
|
+
AddArrayType<TElement>(elementDataTypeName: string): void;
|
|
561
|
+
AddArrayType<TElement>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
562
|
+
AddArrayType<TElement>(elementMapping: TypeInfoMapping): void;
|
|
563
|
+
AddArrayType<TElement>(elementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
564
|
+
AddPolymorphicResolverArrayType(elementDataTypeName: string, elementToArrayConverterFactory: Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>>): void;
|
|
565
|
+
AddPolymorphicResolverArrayType(elementMapping: TypeInfoMapping, elementToArrayConverterFactory: Func<PgSerializerOptions, Func<PgConverterResolution, PgConverter>>): void;
|
|
566
|
+
AddRange(collection: TypeInfoMappingCollection): void;
|
|
567
|
+
AddResolverArrayType<TElement>(elementDataTypeName: string): void;
|
|
568
|
+
AddResolverArrayType<TElement>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
569
|
+
AddResolverArrayType<TElement>(elementMapping: TypeInfoMapping): void;
|
|
570
|
+
AddResolverArrayType<TElement>(elementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
571
|
+
AddResolverStructArrayType<TElement extends unknown>(elementDataTypeName: string): void;
|
|
572
|
+
AddResolverStructArrayType<TElement extends unknown>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
573
|
+
AddResolverStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping): void;
|
|
574
|
+
AddResolverStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
575
|
+
AddResolverStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
576
|
+
AddResolverStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
577
|
+
AddResolverStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
578
|
+
AddResolverType<T>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
579
|
+
AddResolverType<T>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
580
|
+
AddResolverType<T>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
581
|
+
AddStructArrayType<TElement extends unknown>(elementDataTypeName: string): void;
|
|
582
|
+
AddStructArrayType<TElement extends unknown>(elementDataTypeName: string, suppressObjectMapping: boolean): void;
|
|
583
|
+
AddStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping): void;
|
|
584
|
+
AddStructArrayType<TElement extends unknown>(elementMapping: TypeInfoMapping, nullableElementMapping: TypeInfoMapping, suppressObjectMapping: boolean): void;
|
|
585
|
+
AddStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
586
|
+
AddStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
587
|
+
AddStructType<T extends unknown>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
588
|
+
AddType<T>(dataTypeName: string, createInfo: TypeInfoFactory, isDefault?: boolean): void;
|
|
589
|
+
AddType<T>(dataTypeName: string, createInfo: TypeInfoFactory, matchRequirement: MatchRequirement): void;
|
|
590
|
+
AddType<T>(dataTypeName: string, createInfo: TypeInfoFactory, configure: Func<TypeInfoMapping, TypeInfoMapping>): void;
|
|
591
|
+
Find(type: Type, dataTypeName: Nullable<DataTypeName>, options: PgSerializerOptions): PgTypeInfo | undefined;
|
|
558
592
|
}
|
|
559
593
|
|
|
560
594
|
|
|
@@ -563,27 +597,27 @@ export const TypeInfoMappingCollection: {
|
|
|
563
597
|
new(): TypeInfoMappingCollection;
|
|
564
598
|
new(baseCollection: TypeInfoMappingCollection): TypeInfoMappingCollection;
|
|
565
599
|
new(items: IEnumerable<TypeInfoMapping>): TypeInfoMappingCollection;
|
|
566
|
-
|
|
600
|
+
IsArrayLikeType(type: Type, elementType: Type): boolean;
|
|
567
601
|
};
|
|
568
602
|
|
|
569
603
|
|
|
570
604
|
export type TypeInfoMappingCollection = TypeInfoMappingCollection$instance;
|
|
571
605
|
|
|
572
606
|
export abstract class PgConverterFactory$instance {
|
|
573
|
-
static
|
|
574
|
-
static
|
|
575
|
-
static
|
|
576
|
-
static
|
|
607
|
+
static CreateArrayMultirangeConverter<T>(rangeConverter: PgConverter_1<T>, options: PgSerializerOptions): PgConverter_1<T[]>;
|
|
608
|
+
static CreateListMultirangeConverter<T>(rangeConverter: PgConverter_1<T>, options: PgSerializerOptions): PgConverter_1<List<T>>;
|
|
609
|
+
static CreatePolymorphicArrayConverter<TBase>(arrayConverterFactory: Func<PgConverter_1<TBase>>, nullableArrayConverterFactory: Func<PgConverter_1<TBase>>, options: PgSerializerOptions): PgConverter_1<TBase>;
|
|
610
|
+
static CreateRangeConverter<T>(subTypeConverter: PgConverter_1<T>, options: PgSerializerOptions): PgConverter_1<NpgsqlRange_1<T>>;
|
|
577
611
|
}
|
|
578
612
|
|
|
579
613
|
|
|
580
614
|
export type PgConverterFactory = PgConverterFactory$instance;
|
|
581
615
|
|
|
582
616
|
export abstract class TypeInfoMappingHelpers$instance {
|
|
583
|
-
static
|
|
584
|
-
static
|
|
585
|
-
static
|
|
586
|
-
static
|
|
617
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, converter: PgConverter, preferredFormat?: Nullable<DataFormat>, supportsWriting?: boolean): PgTypeInfo;
|
|
618
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, converter: PgConverter): PgTypeInfo;
|
|
619
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, resolver: PgConverterResolver, includeDataTypeName: boolean, preferredFormat?: Nullable<DataFormat>, supportsWriting?: boolean): PgResolverTypeInfo;
|
|
620
|
+
static CreateInfo(mapping: TypeInfoMapping, options: PgSerializerOptions, resolver: PgConverterResolver, includeDataTypeName: boolean): PgResolverTypeInfo;
|
|
587
621
|
}
|
|
588
622
|
|
|
589
623
|
|