Wolframe, 0.0.3

_Wolframe::db::LanguageDescription Class Referenceabstract

Interface to properties of the database language used. More...

#include <databaseLanguage.hpp>

Inheritance diagram for _Wolframe::db::LanguageDescription:
_Wolframe::db::LanguageDescriptionSQL

Public Types

typedef std::pair< std::string,
std::string > 
TemplateArgumentAssignment
 Substitute all template arguments in the specified embedded database statement. More...
 

Public Member Functions

virtual ~LanguageDescription ()
 Destructor. More...
 
virtual const char * eoln_commentopr () const =0
 Operator marking the start of an end of line comment. More...
 
virtual std::string stm_argument_reference (int index) const =0
 String used for declaring a reference to an argument by index (starting with 1). Default is the SQL standard argument reference in embedded database statements. More...
 
virtual bool isEmbeddedStatement (std::string::const_iterator si, std::string::const_iterator se) const =0
 Evaluate if the start of the block specified as argument is forming an embedded statement in the database language. More...
 
virtual std::string parseEmbeddedStatement (std::string::const_iterator &si, std::string::const_iterator se) const =0
 Parse an embedded statement in the database language. More...
 
virtual std::string substituteTemplateArguments (const std::string &cmd, const std::vector< TemplateArgumentAssignment > &arg) const =0
 
virtual bool isCaseSensitive () const =0
 Define if a database is case-insensitive. This has influence on TDL parsing Default is according SQL standard 'false'. More...
 

Detailed Description

Interface to properties of the database language used.

Interface to properties of the database language (SQL)

Member Typedef Documentation

typedef std::pair<std::string,std::string> _Wolframe::db::LanguageDescription::TemplateArgumentAssignment

Substitute all template arguments in the specified embedded database statement.

Parameters
[in]cmdembedded database statement
[in]argtemplate arguments to substitute in the embedded database statement

Constructor & Destructor Documentation

virtual _Wolframe::db::LanguageDescription::~LanguageDescription ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual const char* _Wolframe::db::LanguageDescription::eoln_commentopr ( ) const
pure virtual

Operator marking the start of an end of line comment.

Implemented in _Wolframe::db::LanguageDescriptionSQL.

virtual bool _Wolframe::db::LanguageDescription::isCaseSensitive ( ) const
pure virtual

Define if a database is case-insensitive. This has influence on TDL parsing Default is according SQL standard 'false'.

Implemented in _Wolframe::db::LanguageDescriptionSQL.

virtual bool _Wolframe::db::LanguageDescription::isEmbeddedStatement ( std::string::const_iterator  si,
std::string::const_iterator  se 
) const
pure virtual

Evaluate if the start of the block specified as argument is forming an embedded statement in the database language.

Implemented in _Wolframe::db::LanguageDescriptionSQL.

virtual std::string _Wolframe::db::LanguageDescription::parseEmbeddedStatement ( std::string::const_iterator &  si,
std::string::const_iterator  se 
) const
pure virtual

Parse an embedded statement in the database language.

Implemented in _Wolframe::db::LanguageDescriptionSQL.

virtual std::string _Wolframe::db::LanguageDescription::stm_argument_reference ( int  index) const
pure virtual

String used for declaring a reference to an argument by index (starting with 1). Default is the SQL standard argument reference in embedded database statements.

Implemented in _Wolframe::db::LanguageDescriptionSQL.

virtual std::string _Wolframe::db::LanguageDescription::substituteTemplateArguments ( const std::string &  cmd,
const std::vector< TemplateArgumentAssignment > &  arg 
) const
pure virtual

The documentation for this class was generated from the following file: