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

Method first

src/executor/cursor.rs:206–210  ·  view source on GitHub ↗

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

(&mut self, num_rows: u64)

Source from the content-addressed store, hash-verified

204
205 /// Limit result set to only first N rows in ascending order of the order by column
206 pub fn first(&mut self, num_rows: u64) -> &mut Self {
207 self.last = None;
208 self.first = Some(num_rows);
209 self
210 }
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 {

Callers 3

query_oneMethod · 0.80
cursor_paginationFunction · 0.80

Calls

no outgoing calls

Tested by 1

cursor_paginationFunction · 0.64