Skip to content
Classplugin-kysely-postgresv0.6.0

KyselyService

Base class for KyselyPostgres services.

Provides a small, typed shim around the shared Kysely instance and ensures that subclasses have been decorated with @RegisterKyselyService.

abstract class KyselyService<
    TTable extends LiteralUnion<KyselyTable, string> =
        KyselyTable
>

Member visibility

Filter class members by access level.

constructor

Constructs a new instance of the KyselyService class

KyselyService(kysely: KyselyPostgres, core: CoreBase)

Showing members with Protected visibility and higher.

db

Shared Kysely instance used to interact with the Postgres database.

public get db(): Kysely<KyselySchema>

table

public readonly table: TTable