You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/kysely-driver/README.md
+11-125
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,15 @@
2
2
3
3
This package (`packages/kysely-driver`) brings the benefits of an ORM through our maintained [Kysely](https://kysely.dev/) driver to [PowerSync](https://powersync.com).
4
4
5
-
## Beta Release
6
-
7
-
The `kysely-driver` package is currently in a beta release.
8
-
9
5
## Getting started
10
6
11
7
Set up the PowerSync Database and wrap it with Kysely.
12
8
13
-
Table column object type definitions are not yet available in JavaScript.
When defining the app schema with new `TableV2` declarations, the TypeScript types for tables can be automatically generated.
31
-
See an [example](https://github.com/powersync-ja/powersync-js/blob/main/demos/react-supabase-todolist/src/library/powersync/AppSchema.ts) of defining the app schema with `TableV2`.
awaittransaction.execute('INSERT INTO users (id, name) VALUES(4, ?)', ['James']);
165
-
awaittransaction.execute("UPDATE users SET name = ? WHERE name = ?", ['James Smith', 'James']);
166
-
})
167
-
constresult=awaitpowerSyncDb.getAll('SELECT * from users')
54
+
For more information on Kysely typing, see [here](https://kysely.dev/docs/getting-started#types).
168
55
169
-
// { id: '4', name: 'James Smith' }
170
-
```
56
+
For more information on how to use Kysely queries in PowerSync, see [here](https://docs.powersync.com/client-sdk-references/javascript-web/javascript-orm/kysely#usage-examples).
0 commit comments