Skip to content
Permalink
Browse files

changed license, changed scope, converted spaces to tabs

  • Loading branch information...
the4thdoctor committed Aug 23, 2016
1 parent 5104501 commit 8f67422b224693538224f45ba323d629cf55db8f
Showing with 504 additions and 1,117 deletions.
  1. +23 −674 LICENSE
  2. +1 −1 README.md
  3. +21 −0 config/config-example.yaml
  4. +7 −0 pg_chameleon/lib/config_lib.py
  5. +182 −182 pg_chameleon/lib/mysql_lib.py
  6. +253 −253 pg_chameleon/lib/pg_lib.py
  7. +7 −0 requirements.txt
  8. +1 −1 run_transform.py
  9. +9 −6 setup.py
697 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,4 +1,4 @@
pg_chameleon
============

Migration script from mysql to PostgreSQL
Migration and replica from mysql to PostgreSQL
@@ -0,0 +1,21 @@
---
#global settings
my_server_id: 100
replica_batch_size: 1000
my_database: db_replica
pg_database: db_replication

#mysql slave setup
mysql_conn:
host: localhost
port: 3306
user: replication_username
passwd: never_commit_passwords

#postgres connection
postgres_db:
host: localhost
port: 5432
user: replication_username
password: never_commit_passwords

@@ -0,0 +1,7 @@
import yaml
import sys
import os
class config_lib:
if not os.path.isfile(config_file):
print "**FATAL - configuration file missing **\ncopy config/config-example.yaml to config/config.yaml and set your connection settings."
sys.exit()
Oops, something went wrong.

0 comments on commit 8f67422

Please sign in to comment.
You can’t perform that action at this time.