rattail-demo/rattail_demo/web/db.py

15 lines
296 B
Python
Raw Normal View History

2018-11-22 11:16:59 -06:00
# -*- coding: utf-8; -*-
"""
Web Database Sessions
"""
from sqlalchemy.orm import sessionmaker, scoped_session
from zope.sqlalchemy import register
CoreSession = scoped_session(sessionmaker())
register(CoreSession)
CoreTransSession = scoped_session(sessionmaker())
register(CoreTransSession)