itscaro / postgresql-streamer

Stream data modification from PostgreSQL to AMQP using Wal2Json plugin (https://github.com/eulerto/wal2json)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PostgreSQL Streamer

dev env

Development

In 1st console, execute

make up logs

In 2nd console, execute

make up-app cmd-init-db cmd-start

In 3rd console, execute

make cmd-gendata

Modify code source, then repeat 2nd, 3rd steps

Main Makefile targets

Start PostgreSQL & RabbitMQ

make up

Build binary

make up-app

Build binary & run wal start

make up-app cmd-start

Generate data

make cmd-gendata [GENDATA_NB=3]

Database manipulation

make cmd-initdb # Schema is only created when inexistent
make cmd-reinitdb

About

Stream data modification from PostgreSQL to AMQP using Wal2Json plugin (https://github.com/eulerto/wal2json)


Languages

Language:Go 86.7%Language:Dockerfile 7.4%Language:Makefile 5.0%Language:Shell 1.0%