Skip to content

Instantly share code, notes, and snippets.

@ferbncode
Last active March 14, 2017 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferbncode/a37a566d4007cb0757dd0e93b75375e6 to your computer and use it in GitHub Desktop.
Save ferbncode/a37a566d4007cb0757dd0e93b75375e6 to your computer and use it in GitHub Desktop.
Example functions
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