Module: AQL

Defined in:
lib/aql.rb,
lib/aql/node.rb,
lib/aql/buffer.rb,
lib/aql/constants.rb,
lib/aql/node/call.rb,
lib/aql/node/name.rb,
lib/aql/node/null.rb,
lib/aql/node/block.rb,
lib/aql/node/literal.rb,
lib/aql/node/operator.rb,
lib/aql/node/attribute.rb,
lib/aql/node/operation.rb,
lib/aql/node/operation/for.rb,
lib/aql/node/operator/nary.rb,
lib/aql/node/operation/nary.rb,
lib/aql/node/operator/unary.rb,
lib/aql/node/operation/limit.rb,
lib/aql/node/operation/unary.rb,
lib/aql/node/operator/binary.rb,
lib/aql/node/literal/composed.rb,
lib/aql/node/operation/binary.rb,
lib/aql/node/operator/ternary.rb,
lib/aql/node/literal/primitive.rb,
lib/aql/node/literal/singleton.rb,
lib/aql/node/operator/assignment.rb,
lib/aql/node/literal/composed/list.rb,
lib/aql/node/literal/primitive/number.rb,
lib/aql/node/literal/primitive/string.rb,
lib/aql/node/literal/composed/document.rb

Overview

Library namespace

Defined Under Namespace

Classes: Buffer, Node

Constant Summary collapse

KEYWORDS =
IceNine.deep_freeze(%w(
  FOR
  RETURN
  FILTER
  SORT
  LIMIT
  LET
  COLLECT
  ASC
  DESC
  IN
  INTO
  NULL
  TRUE
  FALSE
).to_set)

Class Method Summary collapse

Class Method Details

.literal_node(value) ⇒ AQL::Node::Literal

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return AQL node for literal

Parameters:

  • value (Object)

Returns:



17
18
19
# File 'lib/aql.rb', line 17

def self.literal_node(value)
  AQL::Node::Literal.build(value)
end

.name_node(name) ⇒ AQL::Node::Name

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return AQL name node

Parameters:

  • name (#to_s)

Returns:



29
30
31
# File 'lib/aql.rb', line 29

def self.name_node(name)
  AQL::Node::Name.new(name.to_s)
end