Skip to content

Conversation

@apteryks
Copy link

@apteryks apteryks commented May 4, 2022

Fixes #1035.

  • gourmet/backends/db.py (RecData.fetch_len): Use
    the sqlalchemy.func.count selector to return the table length.

How Has This Been Tested?

Building the package with GNU Guix and ensuring the test suite passes + summarily testing the resulting gourmet executable.

Fixes thinkle#1035.

* gourmet/backends/db.py (RecData.fetch_len): Use
the sqlalchemy.func.count selector to return the table length.
@apteryks
Copy link
Author

apteryks commented May 4, 2022

I'm no sqlalchemy expert, so review carefully, but it at least passes the test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not compatible with SQLAlchemy >= 1.4.

1 participant