lib/sql_tree/parser.rb in sql_tree-0.0.3 vs lib/sql_tree/parser.rb in sql_tree-0.1.0
- old
+ new
@@ -55,9 +55,12 @@
end
def parse!
case self.peek
when SQLTree::Token::SELECT then SQLTree::Node::SelectQuery.parse(self)
+ when SQLTree::Token::INSERT then SQLTree::Node::InsertQuery.parse(self)
+ when SQLTree::Token::DELETE then SQLTree::Node::DeleteQuery.parse(self)
+ when SQLTree::Token::UPDATE then SQLTree::Node::UpdateQuery.parse(self)
else raise UnexpectedToken.new(self.peek)
end
end
end