exosql v0.2.7 ExoSQL.Parser View Source

Parsed an SQL statement into a ExoSQL.Query.

The Query then needs to be planned and executed.

It also resolves partial column and table names using data from the context and its schema functions.

Uses leex and yecc to perform a first phase parsing, and then convert an dprocess the structure using more context knowledge to return a proper Query struct.

Link to this section Summary

Functions

Parses an SQL statement and returns the parsed ExoSQL struct

Link to this section Functions

Parses an SQL statement and returns the parsed ExoSQL struct.

Link to this function resolve_column(column, tables, context) View Source
Link to this function resolve_table(arg, context) View Source