Skip to content

Instantly share code, notes, and snippets.

@jd jd/gist:8666438
Created Jan 28, 2014

Embed
What would you like to do?
def create_engine(sql_connection, sqlite_fk=False,
mysql_traditional_mode=False):
return session.create_engine(sql_connection,
sqlite_fk,
mysql_traditional_mode,
idle_timeout=CONF.database.idle_timeout,
connection_debug=CONF.databse.connection_debug,
max_pool_size=CONF.database.max_pool_size,
max_overflow=CONF.database.max_overflow,
pool_timeout=CONF.database.pool_timeout,
sqlite_synchronous=CONF.database.sqlite_synchronous,
connection_trace=CONF.database.connection_trace,
max_retries=CONF.database.max_retries,
retry_internval=CONF.database.retry_interval)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.