Electric Schema Shapes

Design Postgres schema and Electric shape definitions together for a new feature. Covers single-table shape constraint, cross-table joins using multiple shapes, WHERE clause design for tenant isolation, column selection for bandwidth optimization, replica mode choice (default vs full for old_value), enum casting in WHERE clauses, and txid handshake setup with pg_current_xact_id() for optimistic writes. Load when designing database tables for use with Electric shapes.

electric-sql Updated

File contents

electric-sql/electric/tree/main/packages/typescript-client/skills/electric-schema-shapes commit 6e1587391a

Frequently asked questions

npx skillmds@latest add electric-sql/electric-schema-shapes-2