Skip to content
/ accio Public

The Accio Tables and Columns tool is a Python script that synchronizes selected tables and their columns between two PostgreSQL databases. With a simple bash script to manage container lifecycle, it's easy to run and provides a flexible solution for developers looking to manage database schemas.

Notifications You must be signed in to change notification settings

3akram/accio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and Push Docker Image

Accio Sync Tool

This is a tool for syncing tables between two PostgreSQL databases.

Usage

./run.sh --container-name CONTAINER_NAME

Arguments

  • --container-name CONTAINER_NAME: The name of the Docker container to run. This argument is required.

Configuration

The tool uses a configuration file named config.yml in the root directory of the project. This file specifies the source and destination databases, as well as the tables to sync.

Example config.yml file:

source:
  host: localhost
  port: 5432
  database: source_db
  user: postgres
  password: password

destination:
  host: localhost
  port: 5433
  database: destination_db
  user: postgres
  password: password

tables:
  - name: contacts
    primary_key: contact_id
    columns:
      - name: contact_id
      - name: first_name
      - name: last_name
      - name: email
      - name: phone_number
  - name: users
    primary_key: user_id
    columns:
      - name: user_id
      - name: username
      - name: password

About

The Accio Tables and Columns tool is a Python script that synchronizes selected tables and their columns between two PostgreSQL databases. With a simple bash script to manage container lifecycle, it's easy to run and provides a flexible solution for developers looking to manage database schemas.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published