Class: Cyrel::AST::DeleteNode

Inherits:
ClauseNode show all
Defined in:
lib/cyrel/ast/delete_node.rb

Overview

AST node for DELETE and DETACH DELETE clauses Because sometimes things need to disappear, with or without their relationships

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#==, #accept

Constructor Details

#initialize(variables, detach: false) ⇒ DeleteNode

Returns a new instance of DeleteNode.



10
11
12
13
# File 'lib/cyrel/ast/delete_node.rb', line 10

def initialize(variables, detach: false)
  @variables = variables
  @detach = detach
end

Instance Attribute Details

#detachObject (readonly)

Returns the value of attribute detach.



8
9
10
# File 'lib/cyrel/ast/delete_node.rb', line 8

def detach
  @detach
end

#variablesObject (readonly)

Returns the value of attribute variables.



8
9
10
# File 'lib/cyrel/ast/delete_node.rb', line 8

def variables
  @variables
end