Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
BSD 3-Clause "New" or "Revised" License
217
stars
52
forks
source link
Having a count method generated #115
Open
jaumard opened 5 years ago
Would be nice to have a count method generated to be able to count number of items from a where query a get a integer.
Because for now all we can do (a I know) is:
But it not optimized as you'll map all the objects just to get a count :/
Maybe there a better way @tejainece ?