Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 54 forks source link

Is there a Sum() function available? #151

Closed ziakhan110 closed 4 years ago

ziakhan110 commented 5 years ago

i need to create this query in orm select sum(amount) from transaction group by category_id order by amount desc limit 3;

this my table db

jaumard commented 4 years ago

Hello,

No I don't think this kind of request are supported by the ORM, but look like you don't need an ORM for those, just execute a raw query no ?