|
xale-db 1.0
minimal SQL engine, written in c++
|
Classes | |
| class | BasicParser |
| Basic implementation of SQL parser. More... | |
| class | BasicTokenizer |
| Basic implementation of SQL tokenizer. More... | |
| class | IParser |
| Interface for SQL parsers. More... | |
| class | ITokenizer |
| Interface for SQL tokenizer that converts an input string into a sequence of tokens. More... | |
| struct | Expression |
| Base expression structure. More... | |
| struct | BinaryExpression |
| Binary expression. More... | |
| struct | WhereClause |
| WHERE clause representation. More... | |
| struct | Statement |
| Base statement structure. More... | |
| struct | SelectStatement |
| SELECT statement structure. More... | |
| struct | InsertStatement |
| INSERT statement structure. More... | |
| struct | UpdateStatement |
| UPDATE statement structure. More... | |
| struct | DeleteStatement |
| DELETE statement structure. More... | |
| struct | ColumnDefinitionStmt |
| Column definition for CREATE TABLE statement structure. More... | |
| struct | CreateStatement |
| CREATE TABLE statement structure. More... | |
| struct | DropStatement |
| DROP TABLE statement structure. More... | |
| struct | ListStatement |
| LIST TABLE statement structure. More... | |
| struct | Token |
| Token struct defined by type, value and pos. More... | |
Enumerations | |
| enum class | StatementType { Select , Insert , Update , Delete , Create , Drop , List , Unknown } |
| Types of SQL statements. More... | |
| enum class | ExpressionType { Identifier , StringLiteral , NumericLiteral , BinaryOp , Wildcard } |
| Types of expression nodes. More... | |
| enum class | TokenType { DefinitionKeyword , ManipulationKeyword , QueryKeyword , JoinKeyword , LogicalKeyword , Operator , Identifier , StringLiteral , NumericLiteral , EndOfInput , Unknown } |
| Types of possible tokens. More... | |
Functions | |
| DECLARE_TOKENS (sql_definition_kw, "CREATE", "ALTER", "DROP", "LIST") | |
| DECLARE_TOKENS (sql_manipulation_kw, "SELECT", "INSERT", "UPDATE", "DELETE") | |
| DECLARE_TOKENS (sql_query_kw, "FROM", "WHERE") | |
| DECLARE_TOKENS (sql_join_kw, "JOIN", "LEFT", "RIGHT") | |
| DECLARE_TOKENS (sql_logical_kw, "AND", "OR", "NOT") | |
| DECLARE_TOKENS (sql_operators, "*", ",", "(", ")", "=", "!=", "<", ">", "<=", ">=") | |
| DECLARE_TOKENS (sql_end_query, ";") | |
| const std::string | to_string (TokenType type) |
| Convert TokenType to string. | |
|
strong |
|
strong |
|
strong |
| Xale::Query::DECLARE_TOKENS | ( | sql_definition_kw | , |
| "CREATE" | , | ||
| "ALTER" | , | ||
| "DROP" | , | ||
| "LIST" | ) |
| Xale::Query::DECLARE_TOKENS | ( | sql_end_query | , |
| ";" | ) |
| Xale::Query::DECLARE_TOKENS | ( | sql_join_kw | , |
| "JOIN" | , | ||
| "LEFT" | , | ||
| "RIGHT" | ) |
| Xale::Query::DECLARE_TOKENS | ( | sql_logical_kw | , |
| "AND" | , | ||
| "OR" | , | ||
| "NOT" | ) |
| Xale::Query::DECLARE_TOKENS | ( | sql_manipulation_kw | , |
| "SELECT" | , | ||
| "INSERT" | , | ||
| "UPDATE" | , | ||
| "DELETE" | ) |
| Xale::Query::DECLARE_TOKENS | ( | sql_operators | , |
| "*" | , | ||
| " | , | ||
| " | , | ||
| "(", ")" | ) |
| Xale::Query::DECLARE_TOKENS | ( | sql_query_kw | , |
| "FROM" | , | ||
| "WHERE" | ) |