-
Notifications
You must be signed in to change notification settings - Fork 22
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
How can I produce COUNT (*) queries? #59
Comments
@snusnu the primitives are in place, but I agree that it might make sense to have convenience methods for the common cases like As far as being able to produce |
@dkubb looking at python's DEE docs, i see nothing related to I haven't looked at Tutorial D itself tho, they might have something to say about it ... In the meantime, I'm leaning towards not having to know an attribute name to do pagination. I'll keep on using the code pasted above, to get at one existing, NOT NULL attribute. |
@dkubb seems like I've misread the DEE docs for |
@snusnu FYI Tutorial D simply has aggregate operators that accept relations a first argument. For instance
|
I'm trying to implement pagination, and for UX (pagination links) I need to know the total count of tuples inside the paginated relation. The current API for
Relation#summarize
, and adding a:count
column specifically, forces me to know an existing attribute name present in the relation. Ideally, that wouldn't be necessary tho, because it leaves the burden of knowing relation internals to the callsite (in order to paginate, I need to know one (arbitrary?)NOT NULL
attribute).I'm currently pondering, whether I should simply accept having to know one attribute name (thus including it as a param in the API for pagination) or whether I should do something "clever" to get at one arbitrary name. Something like the following (which imo really is ugly):
Both options seem less than ideal to me. It seems like what i really want, is
COUNT (*)
, but nowhere inaxiom-sql-generator
specs can I find examples of axiom actually being able to produce that.Any pointers would be very much appreciated! Thx in advance!
The text was updated successfully, but these errors were encountered: