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
+7-123Lines changed: 7 additions & 123 deletions
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,6 @@
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.
@@ -25,6 +21,10 @@ export const powerSyncDb = new PowerSyncDatabase({
awaittransaction.execute('INSERT INTO users (id, name) VALUES(4, ?)', ['James']);
167
-
awaittransaction.execute("UPDATE users SET name = ? WHERE name = ?", ['James Smith', 'James']);
168
-
})
169
-
constresult=awaitpowerSyncDb.get('SELECT name FROM users WHERE name = ?', ['James Smith'])
54
+
For more information on Kysely typing, see [here](https://kysely.dev/docs/getting-started#types).
170
55
171
-
// 'James Smith'
172
-
```
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