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/drizzle-driver/README.md
+45-3Lines changed: 45 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,12 +59,54 @@ export const db = wrapPowerSyncWithDrizzle(powerSyncDb, {
59
59
});
60
60
```
61
61
62
-
## Converting Drizzle Tables to PowerSync Tables
62
+
## Schema Conversion
63
63
64
-
The `toPowerSyncTable`function simplifies the process of integrating Drizzle with PowerSync. Define your Drizzle tables, convert each using `toPowerSyncTable`, and supply the converted table definitions into your PowerSync schema for a unified development experience.
64
+
The `toPowerSyncSchema` schema function simplifies the process of integrating Drizzle with PowerSync. Define your Drizzle tablesand supply the schema to the `toPowerSyncSchema` function for a unified development experience.
65
65
66
66
As the PowerSync table only supports `text`, `integer`, and `real`, the same limitation extends to the Drizzle table definitions.
0 commit comments