Electric Orm

Use Electric with Drizzle ORM or Prisma for the write path. Covers getting pg_current_xact_id() from ORM transactions using Drizzle tx.execute(sql) and Prisma $queryRaw, running migrations that preserve REPLICA IDENTITY FULL, and schema management patterns compatible with Electric shapes. Load when using Drizzle or Prisma alongside Electric for writes.

electric-sql Updated

File contents

electric-sql/electric/tree/main/packages/typescript-client/skills/electric-orm commit 383bf28d78

Frequently asked questions

npx skillmds@latest add electric-sql/electric-orm-2