We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi and thanks for the lib!
Could you say please how to select specific fields?
class BusinessUnit(BaseModel): __tablename__ = 'businessunit' id = Column(Integer, autoincrement=True, unique=True, primary_key=True, nullable=False) code = Column(Text, nullable=False, unique=True) name = Column(Text, nullable=False)
Now I'm forced to do like this:
BusinessUnit._session.query(BusinessUnit.code, BusinessUnit.id).all()
The text was updated successfully, but these errors were encountered:
@albertalexandrov What would be the result for this scenario? 1. A Result (tuple) object, a full object with only the select fields loaded.
Sorry, something went wrong.
No branches or pull requests
Hi and thanks for the lib!
Could you say please how to select specific fields?
Now I'm forced to do like this:
BusinessUnit._session.query(BusinessUnit.code, BusinessUnit.id).all()
The text was updated successfully, but these errors were encountered: