Utility functions for extracting information from SQL schema files. More...
#include <string>
#include "DataTypes.h"
#include "TableInfo.h"
Go to the source code of this file.
Namespaces | |
namespace | SqlParser |
Utility functions for extracting information from SQL schema files. | |
Functions | |
void | SqlParser::extractTable (const std::string &filename, const std::string &tablename, TableInfo &att) |
Extract all info for the named table in the named schema file. | |
void | SqlParser::string2words (const std::string &str, StringMap &words) |
bool | SqlParser::isAttrEntry (const std::string &word) |
Does the word correspond to the name of an attribute? | |
bool | SqlParser::isCreateTable (const std::string &w1, const std::string &w2, const std::string &w3, const std::string &tablename) |
bool | SqlParser::isEndOfTable (const std::string &word) |
Does the word correspond to the end of the text describing a table? | |
bool | SqlParser::isTag (const std::string &word) |
Does the word correspond to one of our in house --/X tags? | |
Variables | |
const std::string | SqlParser::TAGHEAD = "--/" |
Utility functions for extracting information from SQL schema files.