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 a sessionmaker.

The default implementation creates a sessionmaker for SignallingSession.

Parameters:

options – dict of keyword arguments passed to session class