def main(mysql_dsn, tables, blocking=False, debug=False): level = "DEBUG" if debug else "INFO" setup_logger(level) print_sub(tables) pub_tables = tables if tables else None mysql_pub(mysql_dsn, tables=pub_tables, blocking=blocking)
def main(mysql_dsn): # make sure the user has permission to read binlog mysql_dsn = mysql_dsn or "mysql+pymysql://root@localhost/meepo_test" from meepo.sub import print_sub print_sub(["test"]) from meepo.pub import mysql_pub mysql_pub(mysql_dsn, ["test"])
def main(): dsn = "sqlite:///sa_demo.db" session = session_prepare(dsn) from meepo.sub import print_sub print_sub(["test"]) from meepo.pub import sqlalchemy_pub sqlalchemy_pub(session) sa_demo(session)