LibreOffice Module dbaccess (master) 1
|
#include <createparser.hxx>
Public Member Functions | |
CreateStmtParser () | |
virtual | ~CreateStmtParser () |
OUString const & | getTableName () const |
std::vector< OUString > const & | getPrimaryKeys () const |
const std::vector< ColumnDefinition > & | getColumnDef () const |
const std::vector< OUString > & | getForeignParts () const |
void | parse (std::u16string_view sSql) |
Parses a create statement. More... | |
virtual OUString | compose () const =0 |
Recreate the sql statement. More... | |
Protected Member Functions | |
void | parseColumnPart (std::u16string_view sColumnPart) |
void | parsePrimaryKeys (std::u16string_view sPrimaryPart) |
Private Attributes | |
std::vector< ColumnDefinition > | m_aColumns |
std::vector< OUString > | m_aForeignParts |
std::vector< OUString > | m_PrimaryKeys |
OUString | m_sTableName |
Definition at line 17 of file createparser.hxx.
dbahsql::CreateStmtParser::CreateStmtParser | ( | ) |
Definition at line 206 of file createparser.cxx.
|
inlinevirtual |
Definition at line 31 of file createparser.hxx.
|
pure virtual |
Recreate the sql statement.
Implemented in dbahsql::FbCreateStmtParser.
|
inline |
Definition at line 47 of file createparser.hxx.
Referenced by dbahsql::FbCreateStmtParser::compose(), dbahsql::FbCreateStmtParser::ensureProperTableLengths(), and dbahsql::SchemaParser::parseSchema().
|
inline |
Definition at line 52 of file createparser.hxx.
Referenced by dbahsql::SchemaParser::parseSchema().
|
inline |
Definition at line 41 of file createparser.hxx.
Referenced by dbahsql::FbCreateStmtParser::appendPrimaryKeyPart().
|
inline |
Definition at line 36 of file createparser.hxx.
References m_sTableName.
Referenced by dbahsql::FbCreateStmtParser::compose(), and dbahsql::SchemaParser::parseSchema().
void dbahsql::CreateStmtParser::parse | ( | std::u16string_view | sSql | ) |
Parses a create statement.
SQL | "CREATE" statement |
Definition at line 282 of file createparser.cxx.
References dbahsql::utils::getTableNameFromStmt(), m_sTableName, parseColumnPart(), SAL_WARN, o3tl::starts_with(), and u.
Referenced by dbahsql::SchemaParser::parseSchema().
|
protected |
Definition at line 223 of file createparser.cxx.
References m_aColumns, m_aForeignParts, m_PrimaryKeys, parsePrimaryKeys(), and o3tl::trim().
Referenced by parse().
|
protected |
Definition at line 208 of file createparser.cxx.
References m_PrimaryKeys, and u.
Referenced by parseColumnPart().
|
private |
Definition at line 20 of file createparser.hxx.
Referenced by parseColumnPart().
|
private |
Definition at line 21 of file createparser.hxx.
Referenced by parseColumnPart().
|
private |
Definition at line 22 of file createparser.hxx.
Referenced by parseColumnPart(), and parsePrimaryKeys().
|
private |
Definition at line 23 of file createparser.hxx.
Referenced by parse().