انتقل إلى المحتوى الرئيسي

Class: PlatformTransaction<DB>

Defined in: packages/persistence/src/platform.ts:27

A transaction opened for a PlatformScope. A different class from TenantTransaction, with its own private field, so neither is assignable to the other and a tenant repository will not take one.

Type Parameters​

DB​

DB

Properties​

scope​

readonly scope: PlatformScope

Defined in: packages/persistence/src/platform.ts:30

The scope the transaction was opened for.


trx​

readonly trx: Transaction<DB>

Defined in: packages/persistence/src/platform.ts:32

The Kysely transaction. Every statement on it runs with oktoid.platform on and the scope path at /.

Accessors​

kind​

Get Signature​

get kind(): "platform"

Defined in: packages/persistence/src/platform.ts:44

Returns​

"platform"

'platform'; reads the private field so the type stays nominal.