@ddd-ts-kit/knex 0.1.1 → 0.3.0
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/README.md +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -190,7 +190,7 @@ interface InvoiceRow {
|
|
|
190
190
|
version: number;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
@Repository(InvoiceRepository
|
|
193
|
+
@Repository(InvoiceRepository)
|
|
194
194
|
export class KnexInvoiceRepository implements InvoiceRepository {
|
|
195
195
|
constructor(private readonly context: KnexContext) {}
|
|
196
196
|
|
|
@@ -277,7 +277,7 @@ import { auditRow, tenantRow, type AuditRow, type TenantRow } from '@ddd-ts-kit/
|
|
|
277
277
|
|
|
278
278
|
interface InvoiceRow extends VersionedInvoice, TenantRow, AuditRow {}
|
|
279
279
|
|
|
280
|
-
@Repository(InvoiceRepository
|
|
280
|
+
@Repository(InvoiceRepository)
|
|
281
281
|
export class KnexInvoiceRepository implements InvoiceRepository {
|
|
282
282
|
constructor(
|
|
283
283
|
private readonly context: KnexContext,
|
|
@@ -332,7 +332,7 @@ export abstract class InvoiceQueries {
|
|
|
332
332
|
import { ExecutionScope, encodeCursor, pageOf, tenantScopeOf } from '@ddd-ts-kit/kernel';
|
|
333
333
|
import { Repository } from '@ddd-ts-kit/kernel/declarations';
|
|
334
334
|
|
|
335
|
-
@Repository(InvoiceQueries
|
|
335
|
+
@Repository(InvoiceQueries)
|
|
336
336
|
export class KnexInvoiceQueries implements InvoiceQueries {
|
|
337
337
|
constructor(
|
|
338
338
|
private readonly context: KnexContext,
|
|
@@ -467,7 +467,7 @@ await knex.schema.withSchema('scheduling').createTable('appointment_list', (tabl
|
|
|
467
467
|
});
|
|
468
468
|
|
|
469
469
|
// infrastructure/persistence/knex-appointment-list.repository.ts
|
|
470
|
-
@Repository(AppointmentList
|
|
470
|
+
@Repository(AppointmentList)
|
|
471
471
|
export class KnexAppointmentList extends KnexReadModelStore<AppointmentRow> implements AppointmentList {
|
|
472
472
|
constructor(context: KnexContext) {
|
|
473
473
|
super(context, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts-kit/knex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Knex adapters for the kernel ports: unit of work, transactional outbox store, processed-event store.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ddd-ts-kit/kernel": "0.
|
|
30
|
-
"@ddd-ts-kit/events": "0.
|
|
29
|
+
"@ddd-ts-kit/kernel": "0.3.0",
|
|
30
|
+
"@ddd-ts-kit/events": "0.3.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"knex": "^3.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"knex": "^3.3.0",
|
|
37
|
-
"@ddd-ts-kit/testing": "0.
|
|
37
|
+
"@ddd-ts-kit/testing": "0.3.0",
|
|
38
38
|
"pg": "^8.23.1",
|
|
39
39
|
"@types/pg": "^8.23.1",
|
|
40
40
|
"@electric-sql/pglite": "^0.5.8",
|