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 818eb15 5.2 KB Updated

File contents

electric-sql/electric commit 818eb15a1e

Frequently asked questions

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