Sync engine for local-first apps with real-time sync between client SQLite and backend databases.
| Web | @powersync/web + @journeyapps/wa-sqlite | | React Native | @powersync/react-native + @powersync/op-sqlite | | React hooks | @powersync/react | | Vue composables | @powersync/vue | | Node.js | @powersync/node | | Kysely ORM | @powersync/kysely-driver | | Drizzle ORM | @powersync/drizzle-driver |
| Get one | db.get(sql, params) / db.getOptional(sql, params) | | Get all | db.getAll(sql, params) | | Execute | db.execute(sql, params) | | Transaction | db.writeTransaction(async (tx) => { ... }) | | Watch | db.query({sql, parameters}).watch() | | Diff watch | db.query({sql, parameters}).differentialWatch() |
PowerSync를 사용하여 로컬 우선, 오프라인 지원 TypeScript 앱을 구축하세요. SQLite와 백엔드 데이터베이스(Postgres, MongoDB, MySQL, SQL Server) 간의 실시간 동기화를 구현할 때 사용합니다. 스키마 정의, 데이터베이스 설정, CRUD 작업, React/Vue 후크, 쿼리 보기 및 Kysely/Drizzle ORM 통합을 다룹니다. 출처: guillempuche/ai-skill-powersync.