Skip to content

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 Parameter
TSchema
optional _type?: TSchema;

Defined in: core/src/database/database.service.ts:15


id: string;

Defined in: core/src/database/database.service.ts:13


migrations: Record<string, Migration>;

Defined in: core/src/database/database.service.ts:14