- DATE:
- AUTHOR:
- PowerSync Product Team
Drizzle ORM integration for React Native and JS Web (Alpha)
Good news for Drizzle users: We are excited to announce the alpha release of the @powersync/drizzle-driver
package for JavaScript/TypeScript environments, enabling seamless integration of Drizzle with the PowerSync React Native and JavaScript/Web SDKs.
We want to give developers freedom of choice when it comes to interacting with your database. We know that developers often have strong opinions on using ORMs, so instead of enforcing one approach, we support everything from raw SQL queries to popular ORM libraries. In the JavaScript ecosystem, we already support Kysely, and now introduced Drizzle.
Using an ORM with PowerSync brings type-safe queries, along with a more approachable syntax for many developers—particularly for simpler queries where you might not want to write raw SQL. Drizzle stands out for offering both relational and a SQL-style queries, letting you get the best of both worlds.
This integration allows you to use Drizzle queries in PowerSync's watched queries for real-time updates, transactions, and other CRUD operations.
Getting started
Visit the docs to get started using Drizzle in your app! These also include usage examples for common PowerSync queries.
Help and feedback
If you need any help getting started or have any questions, chat with us on Discord. We'd also love to hear your feedback!