MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / order_by

Method order_by

sdk-rust/src/query.rs:177–180  ·  view source on GitHub ↗

Set the ORDER BY clause # Arguments `clause` - Order by clause (without the ORDER BY keywords) # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; # let session = db.session("admin")?; session.query_builder() .match_pattern("(p:Person)") .return_clause("p.name, p.age") .order_by("p.age DESC"); # Ok::<(), graphlite_sdk::Error>(()) ```

(mut self, clause: &str)

Source from the content-addressed store, hash-verified

175 /// # Ok::<(), graphlite_sdk::Error>(())
176 /// ```
177 pub fn order_by(mut self, clause: &str) -> Self {
178 self.order_by = Some(clause.to_string());
179 self
180 }
181
182 /// Set the SKIP value
183 ///

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected