New issue
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
order_by mechanism #76
Comments
I think a neat way to do this would be with an optional argument for rows = db["table"].rows_where("age > 10", order_by="age desc") If you want everything you can use this: rows = db["table"].rows_where(order_by="age desc") It's a tiny bit weird calling sqlite-utils/sqlite_utils/db.py Lines 436 to 443 in ad6ac19
|
Released in 2.6 |
Documentation here: https://sqlite-utils.readthedocs.io/en/stable/python-api.html#listing-rows |
I changed the logic for looping through projects and ensured that if your local copy of a DB is 0 bytes we always fetch it even if the hash appears to be unchanged. Takes advantage of simonw/sqlite-utils#76
Thanks for your hard work! |
In some cases, I want to iterate rows in a table with
ORDER BY
clause. It would be nice to have arows_order_by
function similar torows_where
.In a more general case,
rows_filter
function might be added to allow more customized filtering to iterate rows.The text was updated successfully, but these errors were encountered: