DatabaseOptions
type DatabaseOptions<TSchema> = { _type?: TSchema; id: string; migrations: Record<string, Migration>;};Defined in: core/src/database/database.service.ts:12
Definition of a database: its unique id and the migrations to run.
TSchema carries the Kysely schema type through _type (never set at
runtime) so getInstance can return a correctly typed connection.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
TSchema |
Properties
Section titled “Properties”_type?
Section titled “_type?”optional _type?: TSchema;Defined in: core/src/database/database.service.ts:15
id: string;Defined in: core/src/database/database.service.ts:13
migrations
Section titled “migrations”migrations: Record<string, Migration>;Defined in: core/src/database/database.service.ts:14