Skip to content

Instantly share code, notes, and snippets.

@coreypobrien
Created October 20, 2014 20:41
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 coreypobrien/a76536858cac359af439 to your computer and use it in GitHub Desktop.
Save coreypobrien/a76536858cac359af439 to your computer and use it in GitHub Desktop.
from sqlalchemy import create_engine
from sqlalchemy.pool import SingletonThreadPool
engine = create_engine(
'mysql+pymysql://user3:test@192.237.225.174:443',
poolclass=SingletonThreadPool,
connect_args={'ssl': {'ca': '/Users/core7900/Source/local-scenarios/ca-cert.pem'}}
)
engine.connect().close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment