Last active
March 14, 2017 16:16
-
-
Save ferbncode/a37a566d4007cb0757dd0e93b75375e6 to your computer and use it in GitHub Desktop.
Example functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import create_engine | |
from sqlalchemy.pool import NullPool | |
SCHEMA_VERSION = 1 | |
mb_engine = None | |
def init_db_engine(connect_str): | |
global mb_engine | |
mb_engine = create_engine(connect_str, poolclass=NullPool) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment