package
0.5.3
Repository: https://github.com/compose/transporter.git
Documentation: pkg.go.dev

# README

PostgreSQL adaptor

The PostgreSQL adaptor is capable of reading/tailing tables using logical decoding and receiving data for inserts.

Configuration:

pg = postgres({
  "uri": "postgres://127.0.0.1:5432/test"
})

Permissions

Postgres as a transporter source uses Logical Decoding which requires the user account to have superuser or replication permissions.

Warning! PostgreSQL on Compose platform does not support superuser permissions so it is not possible to use a Compose PostgreSQL database as a transporter source.

# Functions

NewClient creates a default file client.
WithURI defines the full connection string for the Postgres connection.

# Constants

DefaultURI is the default endpoint of Postgres on the local machine.

# Structs

Client represents a client to the underlying File source.
Reader implements the behavior defined by client.Reader for interfacing with MongoDB.
Session serves as a wrapper for the underlying *sql.DB.
Tailer implements the behavior defined by client.Tailer for interfacing with the MongoDB oplog.
Writer implements client.Writer for use with MongoDB.

# Type aliases

ClientOptionFunc is a function that configures a Client.