2011-06-03 50 views

回答

16
class Book(Base): 
    __tablename__ = 'books' 

    book_id = Column(Integer, primary_key=True) 
    title = Column(String(200), nullable=False) 
    summary = Column(String(2000)) 
    excerpt = deferred(Column(Text)) 
    photo = deferred(Column(Binary)) 

Deferred Column Loading