Repository navigation
Expand file tree
/
Copy pathsqlhelper.h
More file actions
37 lines (24 loc) · 1.42 KB
/
Copy pathsqlhelper.h
File metadata and controls
37 lines (24 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef SQLPARSER_SQLHELPER_H
#define SQLPARSER_SQLHELPER_H
#include "../sql/statements.h"
namespace hsql {
// Prints a summary of the given SQLStatement.
void printStatementInfo(const SQLStatement* stmt);
// Prints a summary of the given SelectStatement with the given indentation.
void printSelectStatementInfo(const SelectStatement* stmt, uintmax_t num_indent);
// Prints a summary of the given ImportStatement with the given indentation.
void printImportStatementInfo(const ImportStatement* stmt, uintmax_t num_indent);
// Prints a summary of the given CopyStatement with the given indentation.
void printExportStatementInfo(const ExportStatement* stmt, uintmax_t num_indent);
// Prints a summary of the given InsertStatement with the given indentation.
void printInsertStatementInfo(const InsertStatement* stmt, uintmax_t num_indent);
// Prints a summary of the given CreateStatement with the given indentation.
void printCreateStatementInfo(const CreateStatement* stmt, uintmax_t num_indent);
// Prints a summary of the given TransactionStatement with the given indentation.
void printTransactionStatementInfo(const TransactionStatement* stmt, uintmax_t num_indent);
// Prints a summary of the given Expression with the given indentation.
void printExpression(Expr* expr, uintmax_t num_indent);
// Prints an ORDER BY clause
void printOrderBy(const std::vector<OrderDescription*>* expr, uintmax_t num_indent);
} // namespace hsql
#endif