flask_restful_dbbase.DBBase.create_session¶
- DBBase.create_session(options)¶
Create the session factory used by
create_scoped_session()
.The factory must return an object that SQLAlchemy recognizes as a session, or registering session events may raise an exception.
Valid factories include a
Session
class or asessionmaker
.The default implementation creates a
sessionmaker
forSignallingSession
.- Parameters:
options – dict of keyword arguments passed to session class