Feathers SQL service adapter built with Kysely
npm install feathers-kysely --saveOfficial docs are pending. You can learn a lot from the tests, though:
Like all Feathers services, you can access the underlying database adapter at service.Model. One thing worth noting in feathers-kysely is that service.Model is the full Kysely instance and not locked down to the current table. So you have to provide the table name in each of the methods that you use, like
service.Model.selectFrom('my-table')...service.Model.insertInto('my-table')...service.Model.updateTable('my-table')...
Note that I haven't created any Feathers-specific tooling around doing transactions, yet, but you should be able to follow the Kysely documentation on transactions and put Feathers-Kysely service calls inside the execute block.
Copyright (c) 2023 Feathers contributors
Licensed under the MIT license.