Functionplugin-kyselyv0.9.0Decorator
See also:KyselyService
RegisterKyselyService<TKey, TTable>(
key: TKey,
options?: KyselyServiceRegistrationOptions<TTable>
): <Ctor extends Constructor<KyselyServices[TKey] & { table: TTable }>>(
ctor: Ctor
) => void\@RegisterKyselyService('users', { table: 'app_users' })
export class UsersService extends KyselyService<'app_users'> {
// Some code
}TKey
TKeyTTable
The table that the service reads, defaulting to the key
TTableThe table that the service reads, defaulting to the key
key
key: TKeyService key for registration and type-safe access
options?
options?: KyselyServiceRegistrationOptions<TTable>