Suppose I have created a table via SQLAlchemy's declarative system.
class Recipe (Base):
__tablename__ = 'recipe'
id = Column(Integer, primary_key=True)
title = Column(Text)
instructions = Column(Text)
Let's now assume I perform a query which yields an instance r
of the Recipe
class. How can I get r
's n
th column value? (e.g. express r.instructions
as something like r[2]
-- which doesn't work.)