MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / last

Method last

src/executor/cursor.rs:213–217  ·  view source on GitHub ↗

Limit result set to only last N rows in ascending order of the order by column

(&mut self, num_rows: u64)

Source from the content-addressed store, hash-verified

211
212 /// Limit result set to only last N rows in ascending order of the order by column
213 pub fn last(&mut self, num_rows: u64) -> &mut Self {
214 self.first = None;
215 self.last = Some(num_rows);
216 self
217 }
218
219 fn resolve_sort_order(&mut self) -> Order {
220 let should_reverse_order = self.last.is_some();

Callers 2

update_migratorFunction · 0.80
find_baker_least_salesFunction · 0.80

Calls

no outgoing calls

Tested by 1

find_baker_least_salesFunction · 0.64