---
name: php186-skill-78066
description: "ElectricSQL 是一个用于 PostgreSQL 的读取路径同步引擎，处理部分复制、数据传递和扇出。它使用与 CDN 集成的 HTTP API 实时地将数据从 Postgres 中同步出来，提供 Shapes 来管理部分复制以及适用于 React 和 TypeScript 的客户端库。"
---

# ElectricSQL 实时 PostgreSQL 同步引擎

## ElectricSQL 实时 PostgreSQL 同步引擎

 

ElectricSQL is a read-path sync engine for PostgreSQL that handles partial replication, data delivery, and fan-out. It syncs data out of Postgres in real time using an HTTP API that integrates with CDNs, with Shapes for managing partial replication and client libraries for React and TypeScript.

 

## Installation

 

Use the upstream install or setup path that matches your environment:

 

- docker compose -f .support/docker-compose.yml up
- brew install asdf
- pnpm install
- pnpm test

 

Requirements and caveats from upstream:

 

- For example, using Docker Compose from the root of this repo:
- We use asdf to install Elixir, Erlang, and Node.js. Versions are defined in .tool-versions.
- This starts a Docker Compose setup with Postgres configured for logical replication on port 54321.

 

Basic usage or getting-started notes:

 

- Getting Started
- See the Quickstart guide to get up and running. In short, you need to:
- have a Postgres database with logical replication enabled; and then to
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/electric-sql/electric/HEAD/README.md
