Skip to content

Instantly share code, notes, and snippets.

@jaychoo
Created October 4, 2011 16:09
Show Gist options
  • Save jaychoo/1262045 to your computer and use it in GitHub Desktop.
Save jaychoo/1262045 to your computer and use it in GitHub Desktop.
Sqlalchemy session example
engine = ConnectionPool.get_engine()
Base = declarative_base()
Session = scoped_session(sessionmaker(bind=engine))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment