View Source Ravix.RQL.Query (ravix v0.0.3)
Detructurized Raven Query Language structure
Link to this section Summary
Functions
Adds a Ravix.RQL.Tokens.And
to the query
Delete all the documents that matches the informed query
Adds a Ravix.RQL.Tokens.From
to the query
Adds a Ravix.RQL.Tokens.From
to the query with an alias
Executes a list query in the informed session
Adds a Ravix.RQL.Tokens.Or
to the query
Create a Query using a raw RQL string
Create a Query using a raw RQL string with parameters
Adds a Ravix.RQL.Tokens.Select
to the query
Adds a Ravix.RQL.Tokens.Update
to the query
Updates all the documents that matches the informed query
Adds a Ravix.RQL.Tokens.Where
to the query
Link to this section Types
@type t() :: %Ravix.RQL.Query{ aliases: map(), and_tokens: [Ravix.RQL.Tokens.And.t()], from_token: Ravix.RQL.Tokens.From.t() | nil, group_token: Ravix.RQL.Tokens.Group.t() | nil, is_raw: boolean(), limit_token: Ravix.RQL.Tokens.Limit.t() | nil, or_tokens: [Ravix.RQL.Tokens.Or.t()], order_token: Ravix.RQL.Tokens.Order.t() | nil, params_count: non_neg_integer(), query_params: map(), query_string: String.t(), select_token: Ravix.RQL.Tokens.Select.t() | nil, update_token: Ravix.RQL.Tokens.Update.t() | nil, where_token: Ravix.RQL.Tokens.Where.t() | nil }
Link to this section Functions
@spec and_not(t(), Ravix.RQL.Tokens.Condition.t()) :: t()
@spec and?(t(), Ravix.RQL.Tokens.Condition.t()) :: t()
Adds a Ravix.RQL.Tokens.And
to the query
Delete all the documents that matches the informed query
Adds a Ravix.RQL.Tokens.From
to the query
Adds a Ravix.RQL.Tokens.From
to the query with an alias
@spec limit(t(), non_neg_integer(), non_neg_integer()) :: t()
Executes a list query in the informed session
@spec or_not(t(), Ravix.RQL.Tokens.Condition.t()) :: t()
@spec or?(t(), Ravix.RQL.Tokens.Condition.t()) :: t()
Adds a Ravix.RQL.Tokens.Or
to the query
Create a Query using a raw RQL string
Create a Query using a raw RQL string with parameters
@spec select(t(), Ravix.RQL.Tokens.Select.allowed_select_params()) :: t()
Adds a Ravix.RQL.Tokens.Select
to the query
Adds a Ravix.RQL.Tokens.Update
to the query
Updates all the documents that matches the informed query
@spec where(t(), Ravix.RQL.Tokens.Condition.t()) :: t()
Adds a Ravix.RQL.Tokens.Where
to the query