0.0.4 • Published 11 months ago
feathers-kysely v0.0.4
feathers-kysely
Feathers SQL service adapter built with Kysely
Installation
npm install feathers-kysely --save
Documentation
Official docs are pending. You can learn a lot from the tests, though:
Note about custom queries
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')...
No Transactions-Specific Methods
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.
License
Copyright (c) 2023 Feathers contributors
Licensed under the MIT license.