replicase / pgcapture

A scalable Netflix DBLog implementation for PostgreSQL
Apache License 2.0
220 stars 31 forks source link

chore: move common functions to the root #38

Closed rueian closed 1 year ago

rueian commented 1 year ago

Previously, developers need to import many different sub-packages and compose them to have a functional pgcapture consumer or gateway.

This PR is aimed to make this library to be more friendly to developers by aliasing commonly used objects to the github.com/rueian/pgcapture, not deeper sub-packages. So that developer's import list can be simplified like this:

image

To do so, this PR moves the main package from the root folder to the cmd folder.