Skip to content
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

Python: need a way to execute a count with an extra where clause #305

Closed
simonw opened this issue Aug 2, 2021 · 1 comment
Closed

Python: need a way to execute a count with an extra where clause #305

simonw opened this issue Aug 2, 2021 · 1 comment

Comments

@simonw
Copy link
Owner

simonw commented Aug 2, 2021

I need this for #304. I'll probably add this to the .execute_count() method as where= and where_args=.

@simonw
Copy link
Owner Author

simonw commented Aug 2, 2021

I'm going to rename .execute_count() to .count_where() - but I'll keep .execute_count() in the codebase since it's a documented API at https://sqlite-utils.datasette.io/en/3.13/python-api.html#count and I don't want to do a major version bump.

simonw added a commit that referenced this issue Aug 2, 2021
@simonw simonw closed this as completed in 4823aff Aug 2, 2021
simonw added a commit that referenced this issue Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant