Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create_session():
- engine = create_engine(con_str)
- session_factory = sessionmaker(bind=engine)
- Session = scoped_session(session_factory)
- return Session()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement