class Session(self.db.Model):
__tablename__ = table
...
should be more like:
class Session1(self.db.Model):
__tablename__ = table
__bind_key__ = bind_key_name
If you are using sqlalchemy and want to store session in a separate database than your primary for whatever reason you would not be able to use this class out of the box.
Perhaps this is already supported and I am simply missing it.
It seems like
should be more like:
If you are using sqlalchemy and want to store session in a separate database than your primary for whatever reason you would not be able to use this class out of the box.
Perhaps this is already supported and I am simply missing it.