12#include <com/sun/star/embed/XStorage.hpp>
31 std::map<OUString, std::vector<sal_Int32>>
m_Indexes;
40 explicit SchemaParser(css::uno::Reference<css::embed::XStorage>& rStorage);
74 const std::map<OUString, std::vector<sal_Int32>>&
getTableIndexes()
const;
80 const std::map<OUString, std::vector<OUString>>&
getPrimaryKeys()
const;
std::map< OUString, std::vector< sal_Int32 > > m_Indexes
SqlStatementVector m_sCreateStatements
void parseSchema()
Parses table definitions contained by a file called "script" in storage.
const SqlStatementVector & getCreateStatements() const
const std::map< OUString, std::vector< OUString > > & getPrimaryKeys() const
Returns a vector of column names for each table.
std::map< OUString, std::vector< ColumnDefinition > > m_ColumnTypes
const SqlStatementVector & getAlterStatements() const
std::vector< ColumnDefinition > getTableColumnTypes(const OUString &sTableName) const
Returns the column types of a table.
const std::map< OUString, std::vector< sal_Int32 > > & getTableIndexes() const
Returns a vector of indexes for each table.
SqlStatementVector m_sAlterStatements
std::map< OUString, std::vector< OUString > > m_PrimaryKeys
css::uno::Reference< css::embed::XStorage > & m_rStorage
SchemaParser(css::uno::Reference< css::embed::XStorage > &rStorage)
std::vector< OUString > SqlStatementVector