Durango v0.1.3 Durango.AQL.Limit View Source

General Forms:

LIMIT count
LIMIT offset, count

AQL Example Usage:

FOR u IN users
  LIMIT 5
  RETURN u
FOR u IN users
  SORT u.firstName, u.lastName, u.id DESC
  LIMIT 2, 5
  RETURN u

Durango Query Usage:

iex> require Durango
Durango
iex> Durango.query([for: u, in: :users, limit: 5, return: u]) |> to_string
"FOR u IN users LIMIT 5 RETURN u"

Link to this section Summary

Functions

iex> Durango.AQL.Limit.render_args(5) “5”

Link to this section Functions

Link to this macro inject_parser() View Source (macro)

iex> Durango.AQL.Limit.render_args(5) “5”

iex> Durango.AQL.Limit.render_args(%Durango.Dsl.BoundVar{key: :thing}) “@thing”

iex> Durango.AQL.Limit.render_args(100, 10) “100, 10”

Link to this function render_args(offset, count) View Source