# Parser.hpp
This File On Github
Ask A Question
API: latest
module: oatpp-postgresql
#include "oatpp-postgresql/ql_template/Parser.hpp"
# Parser
Query template parser.
namespace oatpp { namespace postgresql { namespace ql_template {
class Parser {}
}}}
# Methods
Return Type | Name | Summary |
---|---|---|
oatpp::String | preprocess | Preprocess text. |
data::share::StringTemplate | parseTemplate | Parse query template. |
# Parser::preprocess
Preprocess text.
- @param text
- @param cleanSections - out vector of clean sections.
- @return
static oatpp::String preprocess(const oatpp::String& text, std::vector<CleanSection>& cleanSections)
# Parser::parseTemplate
Parse query template.
- @param text
- @return - oatpp::data::share::StringTemplate.
static data::share::StringTemplate parseTemplate(const oatpp::String& text)
# Parser::TemplateExtra
Query template extra info.
namespace oatpp { namespace postgresql { namespace ql_template {
class Parser {
struct TemplateExtra {}
};
}}}
# Fields
Type | Name | Summary |
---|---|---|
oatpp::String | templateName | Query template name. |
oatpp::String | preparedTemplate | Template text with parameters substituted to SQLite parameter placeholders. |
orm::Executor::ParamsTypeMap | paramsTypeMap | Parameter type map. |
bool | prepare | Use prepared statement for this query. |
# Parser::TemplateExtra::templateName
Query template name.
oatpp::String templateName
# Parser::TemplateExtra::preparedTemplate
Template text with parameters substituted to SQLite parameter placeholders.
oatpp::String preparedTemplate
# Parser::TemplateExtra::paramsTypeMap
Parameter type map.
orm::Executor::ParamsTypeMap paramsTypeMap
# Parser::TemplateExtra::prepare
Use prepared statement for this query.
bool prepare