View Source PgQuery (PgQuery v0.5.3)

Summary

Functions

Parses the binary statement stmt into a Protobuf AST.

Parses the binary statement stmt into a Protobuf AST.

Types

@type error() :: %{message: String.t(), cursorpos: non_neg_integer()}

Functions

@spec parse(String.t()) ::
  {:ok, %PgQuery.ParseResult{stmts: term(), version: term()}}
  | {:error, error()}

Parses the binary statement stmt into a Protobuf AST.

@spec parse!(String.t()) ::
  %PgQuery.ParseResult{stmts: term(), version: term()} | no_return()

Parses the binary statement stmt into a Protobuf AST.

Raises if the statement is invalid.