npm: @powersync/kysely-driver
Setup
Set up the PowerSync Database and wrap it with Kysely.JavaScript Setup
TypeScript Setup
Usage Examples
Below are examples comparing Kysely and PowerSync syntax for common database operations.Select Operations
Insert Operations
Delete Operations
Update Operations
Watched Queries
For watched queries with Kysely it’s recommended to use thewatch()
function from the wrapper package which takes in a Kysely query.