rattail-demo/rattail_demo/web/db.py
2018-11-22 16:48:06 -06:00

15 lines
296 B
Python

# -*- 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)