module

Parsegres

Constants

VERSION = "0.1.0"

Class methods

parse(sql : String) : AST::Statement

Parse a SQL string and return the AST root. Returns AST::SelectStatement for simple queries and AST::CompoundSelect for queries that use UNION / INTERSECT / EXCEPT. Raises Parsegres::LexError or Parsegres::ParseError on invalid input.

Source

Nested types