Skip to content

🛢️ Using PostgreSQL as a Source in Ferry

Ferry allows you to ingest data from a PostgreSQL database and move it to different destinations like data warehouses, APIs, or other databases.

📌 Prerequisites

Before using PostgreSQL as a source, ensure:

  • PostgreSQL is running and accessible.
  • You have a valid connection string (postgres://user:password@host:port/database).
  • The required table exists in your PostgreSQL database.

source_uri Format

To connect Ferry to a PostgreSQL database, use the following connection string format:

plaintext
  postgresql://<username>:<password>@<host>:<port>/<database-name>?sslmode=<sslmode>

Parameters:

  • <username> – PostgreSQL username.
  • <password> – PostgreSQL password.
  • <host> – Database host (e.g., localhost or db.example.com).
  • <port> – PostgreSQL port (default: 5432).
  • <database-name> – Name of the database.
  • <sslmode> – SSL mode (disable, allow, prefer, require, verify-ca, verify-full).

source_table_name Format

plaintext
  public.users

Released under the MIT License.