@tsonic/efcore-npgsql 10.0.1 → 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.
Files changed (82) hide show
  1. package/Microsoft.EntityFrameworkCore/bindings.json +737 -0
  2. package/Microsoft.EntityFrameworkCore.Diagnostics/bindings.json +20 -0
  3. package/Microsoft.EntityFrameworkCore.Metadata.Internal/bindings.json +5 -0
  4. package/Microsoft.Extensions.DependencyInjection/bindings.json +6 -0
  5. package/Npgsql/bindings.json +3099 -41
  6. package/Npgsql/internal/index.d.ts +142 -22
  7. package/Npgsql.BackendMessages/bindings.json +7 -0
  8. package/Npgsql.EntityFrameworkCore.PostgreSQL/bindings.json +39 -1
  9. package/Npgsql.EntityFrameworkCore.PostgreSQL/internal/index.d.ts +7 -2
  10. package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/bindings.json +179 -0
  11. package/Npgsql.EntityFrameworkCore.PostgreSQL.Design.Internal/internal/index.d.ts +17 -2
  12. package/Npgsql.EntityFrameworkCore.PostgreSQL.Diagnostics.Internal/bindings.json +22 -0
  13. package/Npgsql.EntityFrameworkCore.PostgreSQL.Extensions.Internal/bindings.json +8 -0
  14. package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/bindings.json +59 -1
  15. package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure/internal/index.d.ts +8 -3
  16. package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/bindings.json +275 -16
  17. package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal/internal/index.d.ts +35 -11
  18. package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.d.ts +1 -1
  19. package/Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.d.ts +2 -2
  20. package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/bindings.json +120 -31
  21. package/Npgsql.EntityFrameworkCore.PostgreSQL.Internal/internal/index.d.ts +6 -8
  22. package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata/bindings.json +150 -0
  23. package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/bindings.json +480 -4
  24. package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions/internal/index.d.ts +50 -10
  25. package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Conventions.d.ts +4 -4
  26. package/Npgsql.EntityFrameworkCore.PostgreSQL.Metadata.Internal/bindings.json +85 -0
  27. package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/bindings.json +763 -8
  28. package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations/internal/index.d.ts +47 -5
  29. package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/bindings.json +94 -0
  30. package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal/internal/index.d.ts +10 -3
  31. package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Internal.d.ts +2 -2
  32. package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.Operations/bindings.json +42 -0
  33. package/Npgsql.EntityFrameworkCore.PostgreSQL.Migrations.d.ts +5 -4
  34. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query/bindings.json +31 -0
  35. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.ExpressionTranslators.Internal/bindings.json +410 -0
  36. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions/bindings.json +53 -0
  37. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/bindings.json +1093 -9
  38. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal/internal/index.d.ts +103 -15
  39. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/bindings.json +2356 -296
  40. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal/internal/index.d.ts +157 -17
  41. package/Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal.d.ts +6 -5
  42. package/Npgsql.EntityFrameworkCore.PostgreSQL.Scaffolding.Internal/bindings.json +25 -0
  43. package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/bindings.json +508 -4
  44. package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal/internal/index.d.ts +44 -11
  45. package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Json/bindings.json +23 -0
  46. package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/bindings.json +4017 -129
  47. package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.Mapping/internal/index.d.ts +435 -53
  48. package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.d.ts +5 -4
  49. package/Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion/bindings.json +16 -0
  50. package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/bindings.json +257 -2
  51. package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal/internal/index.d.ts +29 -5
  52. package/Npgsql.EntityFrameworkCore.PostgreSQL.Update.Internal.d.ts +5 -2
  53. package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration/bindings.json +20 -0
  54. package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/bindings.json +137 -1
  55. package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal/internal/index.d.ts +16 -3
  56. package/Npgsql.EntityFrameworkCore.PostgreSQL.ValueGeneration.Internal.d.ts +3 -1
  57. package/Npgsql.EntityFrameworkCore.PostgreSQL.d.ts +1 -1
  58. package/Npgsql.Internal/bindings.json +884 -15
  59. package/Npgsql.Internal/internal/index.d.ts +43 -9
  60. package/Npgsql.Internal.Postgres/bindings.json +81 -0
  61. package/Npgsql.Internal.d.ts +1 -1
  62. package/Npgsql.NameTranslation/bindings.json +30 -0
  63. package/Npgsql.PostgresTypes/bindings.json +144 -12
  64. package/Npgsql.PostgresTypes/internal/index.d.ts +12 -9
  65. package/Npgsql.Replication/bindings.json +166 -11
  66. package/Npgsql.Replication/internal/index.d.ts +6 -5
  67. package/Npgsql.Replication.Internal/bindings.json +26 -1
  68. package/Npgsql.Replication.Internal/internal/index.d.ts +1 -0
  69. package/Npgsql.Replication.PgOutput/bindings.json +160 -6
  70. package/Npgsql.Replication.PgOutput/internal/index.d.ts +4 -3
  71. package/Npgsql.Replication.PgOutput.Messages/bindings.json +513 -83
  72. package/Npgsql.Replication.PgOutput.Messages/internal/index.d.ts +43 -40
  73. package/Npgsql.Replication.TestDecoding/bindings.json +40 -2
  74. package/Npgsql.Replication.TestDecoding/internal/index.d.ts +1 -1
  75. package/Npgsql.Schema/bindings.json +87 -54
  76. package/Npgsql.Schema/internal/index.d.ts +33 -27
  77. package/Npgsql.TypeMapping/bindings.json +17 -0
  78. package/Npgsql.Util/bindings.json +4 -0
  79. package/Npgsql.d.ts +1 -1
  80. package/NpgsqlTypes/bindings.json +871 -4
  81. package/NpgsqlTypes/internal/index.d.ts +3 -1
  82. package/package.json +1 -1
@@ -18,7 +18,7 @@ import type { NpgsqlDbType } from "../../NpgsqlTypes/internal/index.js";
18
18
  import * as System_Collections_Generic_Internal from "@tsonic/dotnet/System.Collections.Generic.js";
19
19
  import type { ICollection as ICollection__System_Collections_Generic, IDictionary as IDictionary__System_Collections_Generic, IEnumerable as IEnumerable__System_Collections_Generic, IEnumerator as IEnumerator__System_Collections_Generic, IList as IList__System_Collections_Generic, IReadOnlyDictionary, IReadOnlyList, KeyValuePair } from "@tsonic/dotnet/System.Collections.Generic.js";
20
20
  import * as System_Collections_Internal from "@tsonic/dotnet/System.Collections.js";
21
- import type { ICollection, IDictionary, IEnumerable, IEnumerator, IList } from "@tsonic/dotnet/System.Collections.js";
21
+ import type { Hashtable, ICollection, IDictionary, IEnumerable, IEnumerator, IList } from "@tsonic/dotnet/System.Collections.js";
22
22
  import type { ReadOnlyCollection } from "@tsonic/dotnet/System.Collections.ObjectModel.js";
23
23
  import * as System_ComponentModel_Internal from "@tsonic/dotnet/System.ComponentModel.js";
24
24
  import type { IComponent, ICustomTypeDescriptor } from "@tsonic/dotnet/System.ComponentModel.js";
@@ -137,7 +137,17 @@ export interface INpgsqlNameTranslator$instance {
137
137
 
138
138
  export type INpgsqlNameTranslator = INpgsqlNameTranslator$instance;
139
139
 
140
- export interface NpgsqlBatch$instance extends DbBatch {
140
+ export abstract class NpgsqlBatch$protected {
141
+ protected readonly DbBatchCommands: DbBatchCommandCollection;
142
+ protected DbConnection: DbConnection;
143
+ protected DbTransaction: DbTransaction | undefined;
144
+ protected CreateDbBatchCommand(): DbBatchCommand;
145
+ protected ExecuteDbDataReader(behavior: CommandBehavior): DbDataReader;
146
+ protected ExecuteDbDataReaderAsync(behavior: CommandBehavior, cancellationToken: CancellationToken): Task<DbDataReader>;
147
+ }
148
+
149
+
150
+ export interface NpgsqlBatch$instance extends NpgsqlBatch$protected, DbBatch {
141
151
  readonly BatchCommands: NpgsqlBatchCommandCollection;
142
152
  get Connection(): NpgsqlConnection | undefined;
143
153
  set Connection(value: NpgsqlConnection);
@@ -167,16 +177,21 @@ export const NpgsqlBatch: {
167
177
 
168
178
  export type NpgsqlBatch = NpgsqlBatch$instance;
169
179
 
170
- export interface NpgsqlBatchCommand$instance extends DbBatchCommand {
180
+ export abstract class NpgsqlBatchCommand$protected {
181
+ protected readonly DbParameterCollection: DbParameterCollection;
182
+ }
183
+
184
+
185
+ export interface NpgsqlBatchCommand$instance extends NpgsqlBatchCommand$protected, DbBatchCommand {
171
186
  AppendErrorBarrier: Nullable<System_Internal.Boolean>;
172
187
  readonly CanCreateParameter: boolean;
173
188
  CommandText: string;
174
189
  CommandType: CommandType;
175
- readonly OID: uint;
190
+ OID: uint;
176
191
  readonly Parameters: NpgsqlParameterCollection;
177
192
  readonly RecordsAffected: int;
178
- readonly Rows: ulong;
179
- readonly StatementType: StatementType;
193
+ Rows: ulong;
194
+ StatementType: StatementType;
180
195
  CreateParameter(): NpgsqlParameter;
181
196
  ToString(): string;
182
197
  }
@@ -190,7 +205,13 @@ export const NpgsqlBatchCommand: {
190
205
 
191
206
  export type NpgsqlBatchCommand = NpgsqlBatchCommand$instance;
192
207
 
193
- export interface NpgsqlBatchCommandCollection$instance extends DbBatchCommandCollection {
208
+ export abstract class NpgsqlBatchCommandCollection$protected {
209
+ protected GetBatchCommand(index: int): DbBatchCommand;
210
+ protected SetBatchCommand(index: int, batchCommand: DbBatchCommand): void;
211
+ }
212
+
213
+
214
+ export interface NpgsqlBatchCommandCollection$instance extends NpgsqlBatchCommandCollection$protected, DbBatchCommandCollection {
194
215
  readonly Count: int;
195
216
  readonly IsReadOnly: boolean;
196
217
  Item: NpgsqlBatchCommand;
@@ -274,7 +295,18 @@ export const NpgsqlBinaryImporter: {
274
295
 
275
296
  export type NpgsqlBinaryImporter = NpgsqlBinaryImporter$instance;
276
297
 
277
- export interface NpgsqlCommand$instance extends DbCommand {
298
+ export abstract class NpgsqlCommand$protected {
299
+ protected DbConnection: DbConnection;
300
+ protected readonly DbParameterCollection: DbParameterCollection;
301
+ protected DbTransaction: DbTransaction | undefined;
302
+ protected CreateDbParameter(): DbParameter;
303
+ protected Dispose(disposing: boolean): void;
304
+ protected ExecuteDbDataReader(behavior: CommandBehavior): DbDataReader;
305
+ protected ExecuteDbDataReaderAsync(behavior: CommandBehavior, cancellationToken: CancellationToken): Task<DbDataReader>;
306
+ }
307
+
308
+
309
+ export interface NpgsqlCommand$instance extends NpgsqlCommand$protected, DbCommand {
278
310
  AllResultTypesAreUnknown: boolean;
279
311
  CommandText: string;
280
312
  CommandTimeout: int;
@@ -317,7 +349,16 @@ export const NpgsqlCommand: {
317
349
 
318
350
  export type NpgsqlCommand = NpgsqlCommand$instance;
319
351
 
320
- export interface NpgsqlCommandBuilder$instance extends DbCommandBuilder {
352
+ export abstract class NpgsqlCommandBuilder$protected {
353
+ protected ApplyParameterInfo(p: DbParameter, row: DataRow, statementType: StatementType_Data, whereClause: boolean): void;
354
+ protected GetParameterName(parameterOrdinal: int): string;
355
+ protected GetParameterName(parameterName: string): string;
356
+ protected GetParameterPlaceholder(parameterOrdinal: int): string;
357
+ protected SetRowUpdatingHandler(adapter: DbDataAdapter): void;
358
+ }
359
+
360
+
361
+ export interface NpgsqlCommandBuilder$instance extends NpgsqlCommandBuilder$protected, DbCommandBuilder {
321
362
  QuotePrefix: string;
322
363
  QuoteSuffix: string;
323
364
  GetDeleteCommand(): NpgsqlCommand;
@@ -340,14 +381,24 @@ export const NpgsqlCommandBuilder: {
340
381
 
341
382
  export type NpgsqlCommandBuilder = NpgsqlCommandBuilder$instance;
342
383
 
343
- export interface NpgsqlConnection$instance extends DbConnection {
384
+ export abstract class NpgsqlConnection$protected {
385
+ protected readonly DbProviderFactory: DbProviderFactory;
386
+ protected BeginDbTransaction(isolationLevel: IsolationLevel): DbTransaction;
387
+ protected BeginDbTransactionAsync(isolationLevel: IsolationLevel, cancellationToken: CancellationToken): ValueTask<DbTransaction>;
388
+ protected CreateDbBatch(): DbBatch;
389
+ protected CreateDbCommand(): DbCommand;
390
+ protected Dispose(disposing: boolean): void;
391
+ }
392
+
393
+
394
+ export interface NpgsqlConnection$instance extends NpgsqlConnection$protected, DbConnection {
344
395
  readonly CanCreateBatch: boolean;
345
396
  readonly CommandTimeout: int;
346
397
  ConnectionString: string;
347
398
  readonly ConnectionTimeout: int;
348
399
  readonly Database: string;
349
400
  readonly DataSource: string;
350
- readonly FullState: ConnectionState;
401
+ FullState: ConnectionState;
351
402
  readonly HasIntegerDateTimes: boolean;
352
403
  readonly Host: string | undefined;
353
404
  readonly Port: int;
@@ -422,7 +473,12 @@ export const NpgsqlConnection: {
422
473
 
423
474
  export type NpgsqlConnection = NpgsqlConnection$instance;
424
475
 
425
- export interface NpgsqlConnectionStringBuilder$instance extends DbConnectionStringBuilder {
476
+ export abstract class NpgsqlConnectionStringBuilder$protected {
477
+ protected GetProperties(propertyDescriptors: Hashtable): void;
478
+ }
479
+
480
+
481
+ export interface NpgsqlConnectionStringBuilder$instance extends NpgsqlConnectionStringBuilder$protected, DbConnectionStringBuilder {
426
482
  get ApplicationName(): string | undefined;
427
483
  set ApplicationName(value: string);
428
484
  ArrayNullabilityMode: ArrayNullabilityMode;
@@ -553,7 +609,15 @@ export const NpgsqlCopyTextWriter: {
553
609
 
554
610
  export type NpgsqlCopyTextWriter = NpgsqlCopyTextWriter$instance;
555
611
 
556
- export interface NpgsqlDataAdapter$instance extends DbDataAdapter {
612
+ export abstract class NpgsqlDataAdapter$protected {
613
+ protected CreateRowUpdatedEvent(dataRow: DataRow, command: IDbCommand, statementType: StatementType_Data, tableMapping: DataTableMapping): RowUpdatedEventArgs;
614
+ protected CreateRowUpdatingEvent(dataRow: DataRow, command: IDbCommand, statementType: StatementType_Data, tableMapping: DataTableMapping): RowUpdatingEventArgs;
615
+ protected OnRowUpdated(value: RowUpdatedEventArgs): void;
616
+ protected OnRowUpdating(value: RowUpdatingEventArgs): void;
617
+ }
618
+
619
+
620
+ export interface NpgsqlDataAdapter$instance extends NpgsqlDataAdapter$protected, DbDataAdapter {
557
621
  get DeleteCommand(): NpgsqlCommand | undefined;
558
622
  set DeleteCommand(value: NpgsqlCommand);
559
623
  get InsertCommand(): NpgsqlCommand | undefined;
@@ -575,7 +639,13 @@ export const NpgsqlDataAdapter: {
575
639
 
576
640
  export type NpgsqlDataAdapter = NpgsqlDataAdapter$instance;
577
641
 
578
- export interface NpgsqlDataReader$instance extends DbDataReader {
642
+ export abstract class NpgsqlDataReader$protected {
643
+ protected Dispose(disposing: boolean): void;
644
+ protected GetDbDataReader(ordinal: int): DbDataReader;
645
+ }
646
+
647
+
648
+ export interface NpgsqlDataReader$instance extends NpgsqlDataReader$protected, DbDataReader {
579
649
  readonly Depth: int;
580
650
  readonly FieldCount: int;
581
651
  readonly HasRows: boolean;
@@ -640,7 +710,20 @@ export const NpgsqlDataReader: {
640
710
 
641
711
  export type NpgsqlDataReader = NpgsqlDataReader$instance;
642
712
 
643
- export interface NpgsqlDataSource$instance extends DbDataSource {
713
+ export abstract class NpgsqlDataSource$protected {
714
+ protected CreateDbBatch(): DbBatch;
715
+ protected CreateDbCommand(commandText?: string): DbCommand;
716
+ protected CreateDbConnection(): DbConnection;
717
+ protected Dispose(disposing: boolean): void;
718
+ protected DisposeAsyncBase(): ValueTask;
719
+ protected DisposeAsyncCore(): ValueTask;
720
+ protected DisposeBase(): void;
721
+ protected OpenDbConnection(): DbConnection;
722
+ protected OpenDbConnectionAsync(cancellationToken?: CancellationToken): ValueTask<DbConnection>;
723
+ }
724
+
725
+
726
+ export interface NpgsqlDataSource$instance extends NpgsqlDataSource$protected, DbDataSource {
644
727
  readonly ConnectionString: string;
645
728
  Password: string;
646
729
  Clear(): void;
@@ -714,7 +797,12 @@ export interface __NpgsqlDataSourceBuilder$views {
714
797
  export type NpgsqlDataSourceBuilder = NpgsqlDataSourceBuilder$instance & __NpgsqlDataSourceBuilder$views;
715
798
 
716
799
 
717
- export interface NpgsqlException$instance extends DbException {
800
+ export abstract class NpgsqlException$protected {
801
+ protected readonly DbBatchCommand: DbBatchCommand | undefined;
802
+ }
803
+
804
+
805
+ export interface NpgsqlException$instance extends NpgsqlException$protected, DbException {
718
806
  get BatchCommand(): NpgsqlBatchCommand | undefined;
719
807
  set BatchCommand(value: NpgsqlBatchCommand);
720
808
  readonly IsTransient: boolean;
@@ -725,6 +813,7 @@ export const NpgsqlException: {
725
813
  new(): NpgsqlException;
726
814
  new(message: string, innerException: Exception): NpgsqlException;
727
815
  new(message: string): NpgsqlException;
816
+ new(info: SerializationInfo, context: StreamingContext): NpgsqlException;
728
817
  };
729
818
 
730
819
 
@@ -780,7 +869,12 @@ export const NpgsqlLargeObjectManager: {
780
869
 
781
870
  export type NpgsqlLargeObjectManager = NpgsqlLargeObjectManager$instance;
782
871
 
783
- export interface NpgsqlLargeObjectStream$instance extends Stream {
872
+ export abstract class NpgsqlLargeObjectStream$protected {
873
+ protected Dispose(disposing: boolean): void;
874
+ }
875
+
876
+
877
+ export interface NpgsqlLargeObjectStream$instance extends NpgsqlLargeObjectStream$protected, Stream {
784
878
  readonly CanRead: boolean;
785
879
  readonly CanSeek: boolean;
786
880
  readonly CanTimeout: boolean;
@@ -852,7 +946,13 @@ export const NpgsqlMultiHostDataSource: {
852
946
 
853
947
  export type NpgsqlMultiHostDataSource = NpgsqlMultiHostDataSource$instance;
854
948
 
855
- export interface NpgsqlNestedDataReader$instance extends DbDataReader {
949
+ export abstract class NpgsqlNestedDataReader$protected {
950
+ protected Dispose(disposing: boolean): void;
951
+ protected GetDbDataReader(ordinal: int): DbDataReader;
952
+ }
953
+
954
+
955
+ export interface NpgsqlNestedDataReader$instance extends NpgsqlNestedDataReader$protected, DbDataReader {
856
956
  readonly Depth: int;
857
957
  readonly FieldCount: int;
858
958
  readonly HasRows: boolean;
@@ -947,7 +1047,8 @@ export interface NpgsqlParameter$instance extends DbParameter {
947
1047
  get NpgsqlValue(): unknown | undefined;
948
1048
  set NpgsqlValue(value: unknown);
949
1049
  ParameterName: string;
950
- readonly PostgresType: PostgresType | undefined;
1050
+ get PostgresType(): PostgresType | undefined;
1051
+ set PostgresType(value: PostgresType);
951
1052
  Precision: byte;
952
1053
  Scale: byte;
953
1054
  Size: int;
@@ -994,7 +1095,15 @@ export const NpgsqlParameter_1: {
994
1095
 
995
1096
  export type NpgsqlParameter_1<T> = NpgsqlParameter_1$instance<T>;
996
1097
 
997
- export interface NpgsqlParameterCollection$instance extends DbParameterCollection {
1098
+ export abstract class NpgsqlParameterCollection$protected {
1099
+ protected GetParameter(parameterName: string): DbParameter;
1100
+ protected GetParameter(index: int): DbParameter;
1101
+ protected SetParameter(parameterName: string, value: DbParameter): void;
1102
+ protected SetParameter(index: int, value: DbParameter): void;
1103
+ }
1104
+
1105
+
1106
+ export interface NpgsqlParameterCollection$instance extends NpgsqlParameterCollection$protected, DbParameterCollection {
998
1107
  readonly Count: int;
999
1108
  readonly IsFixedSize: boolean;
1000
1109
  readonly IsReadOnly: boolean;
@@ -1045,7 +1154,12 @@ export const NpgsqlParameterCollection: {
1045
1154
 
1046
1155
  export type NpgsqlParameterCollection = NpgsqlParameterCollection$instance;
1047
1156
 
1048
- export interface NpgsqlRawCopyStream$instance extends Stream {
1157
+ export abstract class NpgsqlRawCopyStream$protected {
1158
+ protected Dispose(disposing: boolean): void;
1159
+ }
1160
+
1161
+
1162
+ export interface NpgsqlRawCopyStream$instance extends NpgsqlRawCopyStream$protected, Stream {
1049
1163
  readonly CanRead: boolean;
1050
1164
  readonly CanSeek: boolean;
1051
1165
  readonly CanTimeout: boolean;
@@ -1188,7 +1302,13 @@ export const NpgsqlTracingOptionsBuilder: {
1188
1302
 
1189
1303
  export type NpgsqlTracingOptionsBuilder = NpgsqlTracingOptionsBuilder$instance;
1190
1304
 
1191
- export interface NpgsqlTransaction$instance extends DbTransaction {
1305
+ export abstract class NpgsqlTransaction$protected {
1306
+ protected readonly DbConnection: DbConnection;
1307
+ protected Dispose(disposing: boolean): void;
1308
+ }
1309
+
1310
+
1311
+ export interface NpgsqlTransaction$instance extends NpgsqlTransaction$protected, DbTransaction {
1192
1312
  readonly Connection: NpgsqlConnection | undefined;
1193
1313
  readonly IsolationLevel: IsolationLevel;
1194
1314
  readonly SupportsSavepoints: boolean;
@@ -15,6 +15,10 @@
15
15
  "isSealed": true,
16
16
  "isStatic": false,
17
17
  "arity": 0,
18
+ "baseType": {
19
+ "stableId": "System.Private.CoreLib:System.Object",
20
+ "clrName": "System.Object"
21
+ },
18
22
  "methods": [
19
23
  {
20
24
  "stableId": "Npgsql:Npgsql.BackendMessages.FieldDescription::ToString():System.String",
@@ -31,6 +35,7 @@
31
35
  "isVirtual": true,
32
36
  "isOverride": true,
33
37
  "isSealed": false,
38
+ "visibility": "Public",
34
39
  "declaringClrType": "Npgsql.BackendMessages.FieldDescription",
35
40
  "declaringAssemblyName": "Npgsql",
36
41
  "isExtensionMethod": false
@@ -52,6 +57,7 @@
52
57
  "isAbstract": false,
53
58
  "isVirtual": false,
54
59
  "isOverride": false,
60
+ "visibility": "Public",
55
61
  "declaringClrType": "Npgsql.BackendMessages.FieldDescription",
56
62
  "declaringAssemblyName": "Npgsql"
57
63
  },
@@ -70,6 +76,7 @@
70
76
  "isAbstract": false,
71
77
  "isVirtual": false,
72
78
  "isOverride": false,
79
+ "visibility": "Public",
73
80
  "declaringClrType": "Npgsql.BackendMessages.FieldDescription",
74
81
  "declaringAssemblyName": "Npgsql"
75
82
  }
@@ -15,7 +15,38 @@
15
15
  "isSealed": false,
16
16
  "isStatic": false,
17
17
  "arity": 0,
18
- "methods": [],
18
+ "baseType": {
19
+ "stableId": "Microsoft.EntityFrameworkCore:Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy",
20
+ "clrName": "Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy"
21
+ },
22
+ "interfaces": [
23
+ {
24
+ "stableId": "Microsoft.EntityFrameworkCore:Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy",
25
+ "clrName": "Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy"
26
+ }
27
+ ],
28
+ "methods": [
29
+ {
30
+ "stableId": "Npgsql.EntityFrameworkCore.PostgreSQL:Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy::ShouldRetryOn(System.Exception):System.Boolean",
31
+ "clrName": "ShouldRetryOn",
32
+ "metadataToken": 100664056,
33
+ "canonicalSignature": "(System.Exception):System.Boolean",
34
+ "normalizedSignature": "ShouldRetryOn|(System.Exception):System.Boolean|static=false",
35
+ "emitScope": "ClassSurface",
36
+ "provenance": "Original",
37
+ "arity": 0,
38
+ "parameterCount": 1,
39
+ "isStatic": false,
40
+ "isAbstract": false,
41
+ "isVirtual": true,
42
+ "isOverride": true,
43
+ "isSealed": false,
44
+ "visibility": "Protected",
45
+ "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
46
+ "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL",
47
+ "isExtensionMethod": false
48
+ }
49
+ ],
19
50
  "properties": [],
20
51
  "fields": [],
21
52
  "events": [],
@@ -27,6 +58,7 @@
27
58
  "normalizedSignature": "constructor|(Microsoft.EntityFrameworkCore.DbContext):void|static=false",
28
59
  "isStatic": false,
29
60
  "parameterCount": 1,
61
+ "visibility": "Public",
30
62
  "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
31
63
  "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL"
32
64
  },
@@ -37,6 +69,7 @@
37
69
  "normalizedSignature": "constructor|(Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies):void|static=false",
38
70
  "isStatic": false,
39
71
  "parameterCount": 1,
72
+ "visibility": "Public",
40
73
  "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
41
74
  "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL"
42
75
  },
@@ -47,6 +80,7 @@
47
80
  "normalizedSignature": "constructor|(Microsoft.EntityFrameworkCore.DbContext,System.Int32):void|static=false",
48
81
  "isStatic": false,
49
82
  "parameterCount": 2,
83
+ "visibility": "Public",
50
84
  "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
51
85
  "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL"
52
86
  },
@@ -57,6 +91,7 @@
57
91
  "normalizedSignature": "constructor|(Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies,System.Int32):void|static=false",
58
92
  "isStatic": false,
59
93
  "parameterCount": 2,
94
+ "visibility": "Public",
60
95
  "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
61
96
  "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL"
62
97
  },
@@ -67,6 +102,7 @@
67
102
  "normalizedSignature": "constructor|(Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies,System.Collections.Generic.ICollection_1[[System.String,System.Private.CoreLib,Version=10.0.0.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e]]):void|static=false",
68
103
  "isStatic": false,
69
104
  "parameterCount": 2,
105
+ "visibility": "Public",
70
106
  "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
71
107
  "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL"
72
108
  },
@@ -77,6 +113,7 @@
77
113
  "normalizedSignature": "constructor|(Microsoft.EntityFrameworkCore.DbContext,System.Int32,System.TimeSpan,System.Collections.Generic.ICollection_1[[System.String,System.Private.CoreLib,Version=10.0.0.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e]]):void|static=false",
78
114
  "isStatic": false,
79
115
  "parameterCount": 4,
116
+ "visibility": "Public",
80
117
  "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
81
118
  "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL"
82
119
  },
@@ -87,6 +124,7 @@
87
124
  "normalizedSignature": "constructor|(Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies,System.Int32,System.TimeSpan,System.Collections.Generic.ICollection_1[[System.String,System.Private.CoreLib,Version=10.0.0.0,Culture=neutral,PublicKeyToken=7cec85d7bea7798e]]):void|static=false",
88
125
  "isStatic": false,
89
126
  "parameterCount": 4,
127
+ "visibility": "Public",
90
128
  "declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.NpgsqlRetryingExecutionStrategy",
91
129
  "declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL"
92
130
  }
@@ -8,12 +8,17 @@ import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint12
8
8
  // Import types from other namespaces
9
9
  import * as System_Internal from "@tsonic/dotnet/System.js";
10
10
  import type { ICollection } from "@tsonic/dotnet/System.Collections.Generic.js";
11
- import type { Int32, String as ClrString, TimeSpan } from "@tsonic/dotnet/System.js";
11
+ import type { Boolean as ClrBoolean, Exception, Int32, String as ClrString, TimeSpan } from "@tsonic/dotnet/System.js";
12
12
  import type { DbContext } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
13
13
  import * as Microsoft_EntityFrameworkCore_Storage_Internal from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Storage.js";
14
14
  import type { ExecutionStrategy, ExecutionStrategyDependencies, IExecutionStrategy } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.Storage.js";
15
15
 
16
- export interface NpgsqlRetryingExecutionStrategy$instance extends ExecutionStrategy {
16
+ export abstract class NpgsqlRetryingExecutionStrategy$protected {
17
+ protected ShouldRetryOn(exception: Exception): boolean;
18
+ }
19
+
20
+
21
+ export interface NpgsqlRetryingExecutionStrategy$instance extends NpgsqlRetryingExecutionStrategy$protected, ExecutionStrategy {
17
22
  }
18
23
 
19
24