Databases
Google BigQuery
See Google for documentation.
MySQL
Postgres
Redshift
See Amazon Web Services section for documentation.
Database Sync
Sync tables between two databases with just a few lines of code. Currently supported database types are:
Google BigQuery
MySQL
Postgres
Redshift
Examples
Full Sync Of Tables
Copy all data from a source table to a destination table.
# Create source and destination database objects
source_rs = Redshift()
destination_rs = Postgres()
# Create db sync object and run sync.
db_sync = DBSync(source_rs, destination_rs) # Create DBSync Object
db_sync.table_sync_full('parsons.source_data', 'parsons.destination_data')
Incremental Sync of Tables
Copy just new data in the table. Utilize this method for tables with distinct primary keys.
# Create source and destination database objects
source_rs = Postgres()
destination_rs = Postgres()
# Create db sync object and run sync.
db_sync = DBSync(source_pg, destination_pg) # Create DBSync Object
db_sync.table_sync_incremental('parsons.source_data', 'parsons.destination_data', 'myid')