@tsonic/efcore-npgsql 10.0.12 → 10.0.20
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/Npgsql/bindings.json
CHANGED
|
@@ -12170,11 +12170,11 @@
|
|
|
12170
12170
|
"isExtensionMethod": false
|
|
12171
12171
|
},
|
|
12172
12172
|
{
|
|
12173
|
-
"stableId": "Npgsql:Npgsql.NpgsqlMultiHostDataSource::OpenConnectionAsync(System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1",
|
|
12173
|
+
"stableId": "Npgsql:Npgsql.NpgsqlMultiHostDataSource::OpenConnectionAsync(System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1\u003CNpgsql.NpgsqlConnection\u003E",
|
|
12174
12174
|
"clrName": "OpenConnectionAsync",
|
|
12175
12175
|
"metadataToken": 0,
|
|
12176
|
-
"canonicalSignature": "(System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1",
|
|
12177
|
-
"normalizedSignature": "OpenConnectionAsync|(System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1|static=false",
|
|
12176
|
+
"canonicalSignature": "(System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1\u003CNpgsql.NpgsqlConnection\u003E",
|
|
12177
|
+
"normalizedSignature": "OpenConnectionAsync|(System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1\u003CNpgsql.NpgsqlConnection\u003E|static=false",
|
|
12178
12178
|
"emitScope": "ClassSurface",
|
|
12179
12179
|
"provenance": "BaseOverload",
|
|
12180
12180
|
"arity": 0,
|
|
@@ -4295,66 +4295,6 @@
|
|
|
4295
4295
|
"declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgUnnestExpression",
|
|
4296
4296
|
"declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL",
|
|
4297
4297
|
"isExtensionMethod": false
|
|
4298
|
-
},
|
|
4299
|
-
{
|
|
4300
|
-
"stableId": "Npgsql.EntityFrameworkCore.PostgreSQL:Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgUnnestExpression::Update(System.Collections.Generic.IReadOnlyList_1):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression",
|
|
4301
|
-
"clrName": "Update",
|
|
4302
|
-
"metadataToken": 0,
|
|
4303
|
-
"canonicalSignature": "(System.Collections.Generic.IReadOnlyList_1):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression",
|
|
4304
|
-
"normalizedSignature": "Update|(System.Collections.Generic.IReadOnlyList_1):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression|static=false",
|
|
4305
|
-
"emitScope": "ClassSurface",
|
|
4306
|
-
"provenance": "BaseOverload",
|
|
4307
|
-
"arity": 0,
|
|
4308
|
-
"parameterCount": 1,
|
|
4309
|
-
"isStatic": false,
|
|
4310
|
-
"isAbstract": false,
|
|
4311
|
-
"isVirtual": true,
|
|
4312
|
-
"isOverride": false,
|
|
4313
|
-
"isSealed": false,
|
|
4314
|
-
"visibility": "Public",
|
|
4315
|
-
"declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgUnnestExpression",
|
|
4316
|
-
"declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL",
|
|
4317
|
-
"isExtensionMethod": false
|
|
4318
|
-
},
|
|
4319
|
-
{
|
|
4320
|
-
"stableId": "Npgsql.EntityFrameworkCore.PostgreSQL:Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgUnnestExpression::WithAlias(System.String):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression",
|
|
4321
|
-
"clrName": "WithAlias",
|
|
4322
|
-
"metadataToken": 0,
|
|
4323
|
-
"canonicalSignature": "(System.String):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression",
|
|
4324
|
-
"normalizedSignature": "WithAlias|(System.String):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression|static=false",
|
|
4325
|
-
"emitScope": "ClassSurface",
|
|
4326
|
-
"provenance": "BaseOverload",
|
|
4327
|
-
"arity": 0,
|
|
4328
|
-
"parameterCount": 1,
|
|
4329
|
-
"isStatic": false,
|
|
4330
|
-
"isAbstract": false,
|
|
4331
|
-
"isVirtual": true,
|
|
4332
|
-
"isOverride": false,
|
|
4333
|
-
"isSealed": false,
|
|
4334
|
-
"visibility": "Public",
|
|
4335
|
-
"declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgUnnestExpression",
|
|
4336
|
-
"declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL",
|
|
4337
|
-
"isExtensionMethod": false
|
|
4338
|
-
},
|
|
4339
|
-
{
|
|
4340
|
-
"stableId": "Npgsql.EntityFrameworkCore.PostgreSQL:Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgUnnestExpression::WithColumnInfos(System.Collections.Generic.IReadOnlyList_1):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression",
|
|
4341
|
-
"clrName": "WithColumnInfos",
|
|
4342
|
-
"metadataToken": 0,
|
|
4343
|
-
"canonicalSignature": "(System.Collections.Generic.IReadOnlyList_1):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression",
|
|
4344
|
-
"normalizedSignature": "WithColumnInfos|(System.Collections.Generic.IReadOnlyList_1):Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgTableValuedFunctionExpression|static=false",
|
|
4345
|
-
"emitScope": "ClassSurface",
|
|
4346
|
-
"provenance": "BaseOverload",
|
|
4347
|
-
"arity": 0,
|
|
4348
|
-
"parameterCount": 1,
|
|
4349
|
-
"isStatic": false,
|
|
4350
|
-
"isAbstract": false,
|
|
4351
|
-
"isVirtual": true,
|
|
4352
|
-
"isOverride": false,
|
|
4353
|
-
"isSealed": false,
|
|
4354
|
-
"visibility": "Public",
|
|
4355
|
-
"declaringClrType": "Npgsql.EntityFrameworkCore.PostgreSQL.Query.Expressions.Internal.PgUnnestExpression",
|
|
4356
|
-
"declaringAssemblyName": "Npgsql.EntityFrameworkCore.PostgreSQL",
|
|
4357
|
-
"isExtensionMethod": false
|
|
4358
4298
|
}
|
|
4359
4299
|
],
|
|
4360
4300
|
"properties": [
|
|
@@ -2625,26 +2625,6 @@
|
|
|
2625
2625
|
"declaringClrType": "Npgsql.Internal.PgBufferedConverter\u00601",
|
|
2626
2626
|
"declaringAssemblyName": "Npgsql",
|
|
2627
2627
|
"isExtensionMethod": false
|
|
2628
|
-
},
|
|
2629
|
-
{
|
|
2630
|
-
"stableId": "Npgsql:Npgsql.Internal.PgBufferedConverter\u00601::ReadAsync(Npgsql.Internal.PgReader,System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1",
|
|
2631
|
-
"clrName": "ReadAsync",
|
|
2632
|
-
"metadataToken": 0,
|
|
2633
|
-
"canonicalSignature": "(Npgsql.Internal.PgReader,System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1",
|
|
2634
|
-
"normalizedSignature": "ReadAsync|(Npgsql.Internal.PgReader,System.Threading.CancellationToken):System.Threading.Tasks.ValueTask_1|static=false",
|
|
2635
|
-
"emitScope": "ClassSurface",
|
|
2636
|
-
"provenance": "BaseOverload",
|
|
2637
|
-
"arity": 0,
|
|
2638
|
-
"parameterCount": 2,
|
|
2639
|
-
"isStatic": false,
|
|
2640
|
-
"isAbstract": true,
|
|
2641
|
-
"isVirtual": true,
|
|
2642
|
-
"isOverride": false,
|
|
2643
|
-
"isSealed": false,
|
|
2644
|
-
"visibility": "Public",
|
|
2645
|
-
"declaringClrType": "Npgsql.Internal.PgBufferedConverter\u00601",
|
|
2646
|
-
"declaringAssemblyName": "Npgsql",
|
|
2647
|
-
"isExtensionMethod": false
|
|
2648
2628
|
}
|
|
2649
2629
|
],
|
|
2650
2630
|
"properties": [],
|
|
@@ -331,7 +331,6 @@ export interface PgBufferedConverter_1$instance<T> extends PgConverter_1<T> {
|
|
|
331
331
|
GetSize(context: SizeContext, value: T, writeState: unknown): Size;
|
|
332
332
|
Read(reader: PgReader): T;
|
|
333
333
|
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
334
|
-
ReadAsync(reader: PgReader, cancellationToken?: CancellationToken): ValueTask_1<T>;
|
|
335
334
|
ReadCore(reader: PgReader): T;
|
|
336
335
|
Write(writer: PgWriter, value: T): void;
|
|
337
336
|
WriteAsync(writer: PgWriter, value: T, cancellationToken?: CancellationToken): ValueTask;
|
package/README.md
CHANGED
|
@@ -1,5 +1,56 @@
|
|
|
1
1
|
# @tsonic/efcore-npgsql
|
|
2
2
|
|
|
3
|
-
TypeScript type definitions for `Npgsql.EntityFrameworkCore.PostgreSQL`
|
|
3
|
+
TypeScript type definitions for **EF Core PostgreSQL provider (Npgsql)** (`Npgsql.EntityFrameworkCore.PostgreSQL` + dependencies) for **.NET 10**.
|
|
4
4
|
|
|
5
|
-
Generated by `tsbindgen` from NuGet
|
|
5
|
+
Generated by `tsbindgen` from NuGet assemblies and intended for use with the **Tsonic** compiler (TypeScript → .NET).
|
|
6
|
+
|
|
7
|
+
## What this package is (and isn’t)
|
|
8
|
+
|
|
9
|
+
- ✅ TypeScript bindings for the **Npgsql EF Core provider** (and its required dependency assemblies).
|
|
10
|
+
- ❌ Not a JavaScript runtime module (the `.js` files are module stubs for type-only use).
|
|
11
|
+
- ✅ You still need the real **.NET assemblies** via NuGet in your Tsonic workspace.
|
|
12
|
+
|
|
13
|
+
## Install (types)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @tsonic/efcore-npgsql @tsonic/efcore @tsonic/dotnet @tsonic/core
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Use with Tsonic (recommended)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
tsonic add nuget Npgsql.EntityFrameworkCore.PostgreSQL <version> @tsonic/efcore-npgsql
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Imports
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import { NpgsqlDbContextOptionsBuilderExtensions } from "@tsonic/efcore-npgsql/Microsoft.EntityFrameworkCore.js";
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
And EF Core base types from `@tsonic/efcore`:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Example (UseNpgsql)
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
import { DbContextOptionsBuilder } from "@tsonic/efcore/Microsoft.EntityFrameworkCore.js";
|
|
41
|
+
import { NpgsqlDbContextOptionsBuilderExtensions } from "@tsonic/efcore-npgsql/Microsoft.EntityFrameworkCore.js";
|
|
42
|
+
|
|
43
|
+
const builder = new DbContextOptionsBuilder();
|
|
44
|
+
NpgsqlDbContextOptionsBuilderExtensions.UseNpgsql(builder, "Host=localhost;Database=app;Username=postgres;Password=postgres");
|
|
45
|
+
const options = builder.Options;
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Versioning
|
|
49
|
+
|
|
50
|
+
This repo is versioned by **.NET major**:
|
|
51
|
+
|
|
52
|
+
- .NET 10 → npm: `@tsonic/efcore-npgsql@10.x`
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsonic/efcore-npgsql",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.20",
|
|
4
4
|
"description": "TypeScript type definitions for Npgsql.EntityFrameworkCore.PostgreSQL (+ dependencies) for .NET 10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"url": "https://github.com/tsoniclang/efcore-npgsql.git"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@tsonic/core": "10.0.
|
|
24
|
-
"@tsonic/dotnet": "10.0.
|
|
25
|
-
"@tsonic/microsoft-extensions": "10.0.
|
|
26
|
-
"@tsonic/efcore": "10.0.
|
|
23
|
+
"@tsonic/core": "10.0.20",
|
|
24
|
+
"@tsonic/dotnet": "10.0.20",
|
|
25
|
+
"@tsonic/microsoft-extensions": "10.0.20",
|
|
26
|
+
"@tsonic/efcore": "10.0.20"
|
|
27
27
|
}
|
|
28
28
|
}
|