Classplugin-kysely-postgresv0.2.1
class KyselyPostgres extends Plugin<{
transport: "any";
runtime: "server";
}>Member visibility
Filter class members by access level.
KyselyPostgres(host: CoreBase, options: KyselyOptions)Showing members with Protected visibility and higher.
public connection: Kysely<KyselySchema>core
The host, typed to the transport whose Plugin base this class extends.
protected core: TCoreInherited from:Plugin
logger
Logs under the plugin's class name, on the channel its attach key sets.
public get services(): KyselyServicesThrows:
A SeedcordError if accessed before the plugin finishes initializing.
public async listMigrations(): Promise<readonly MigrationInfo[]>public async listPendingMigrations(): Promise<MigrationInfo[]>public async migrate(
options?: MigrationOptions
): Promise<void>Parameter:
optionsTarget migration or direction overrides
public async migrateDown(
options?: StepMigrationOptions
): Promise<void>public async migrateUp(
options?: StepMigrationOptions
): Promise<void>async onHmr(_event: HmrUpdateEvent): Promise<void>Inherited from:Plugin
- optional
ready()
Runs in the startup Ready phase, after init(). The gateway client is logged in by this phase, and the http host binds its server in the same phase.
registerCriticalFiles()
Registers critical file patterns that should trigger a full restart when changed in Dev HMR.
rejectOptions()
Throws a SeedcordError that contains the plugin class name and the reason.