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() |
Crea app TypeScript locali e con funzionalità offline con PowerSync. Da utilizzare quando si implementa la sincronizzazione in tempo reale tra SQLite e i database backend (Postgres, MongoDB, MySQL, SQL Server). Copre la definizione dello schema, la configurazione del database, le operazioni CRUD, gli hook React/Vue, le query di controllo e l'integrazione ORM Kysely/Drizzle. Fonte: guillempuche/ai-skill-powersync.