Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Files

Latest commit

anthonyalbertodavissp14pete-mayyoonsio
Dec 2, 2021
6b30c38 · Dec 2, 2021

History

History

postgres

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 2, 2021
Dec 2, 2021
Dec 2, 2021
Mar 21, 2017
Aug 30, 2017
Aug 30, 2017
Dec 2, 2021
Dec 2, 2021
Mar 21, 2017
Dec 2, 2021
Dec 2, 2021
Jun 22, 2017
Dec 2, 2021

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.

Run adaptor test

Spin up required containers

You'll need those ports on your local machine: 5432

So make sure to kill anything that might use them (like a local postgres instance)

# From transporter's root folder
version=12
# Pay attention to a WARNING telling you to add a line to /etc/hosts in the following command
scripts/run_db_in_docker.sh postgres $version

Run the tests

# From transporter's root folder
go test -v ./adaptor/postgres/

Tear down containers

Once you're done

TESTDIR=adaptor/postgres scripts/teardown_db_in_docker.sh