OpenM++ runtime library (libopenm)
|
class to build model creation sql from metadata rows. More...
#include <modelSqlBuilder.h>
Public Member Functions | |
ModelSqlBuilder (const string &i_providerNames, const string &i_sqlDir, const string &i_outputDir, const string &i_sqliteDir) | |
create new model builder. | |
~ModelSqlBuilder () noexcept | |
release builder resources. | |
bool | isSqliteDb (void) const override |
if true then create SQLite database More... | |
void | setModelMetaRows (MetaModelHolder &io_metaRows) const override |
set meta rows values and calculate digests for types, parameters, tables and model More... | |
void | build (MetaModelHolder &io_metaRows) override |
update metadata and write sql script to create new model from supplied metadata rows More... | |
void | beginWorkset (const MetaModelHolder &i_metaRows, MetaSetLangHolder &io_metaSet) override |
start sql script to create new working set More... | |
void | addWorksetParameter (const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet, const string &i_name, int i_subId, const string &i_value) override |
append scalar parameter value to sql script for new working set creation More... | |
void | addWorksetParameter (const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet, const string &i_name, int i_subId, const list< string > &i_valueLst) override |
append parameter values to sql script for new working set creation More... | |
void | endWorkset (const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet) override |
finish sql script to create new working set More... | |
void | buildCompatibilityViews (const MetaModelHolder &i_metaRows) const override |
write sql script to create backward compatibility views More... | |
virtual bool | isSqliteDb (void) const =0 |
if true then create SQLite database More... | |
virtual void | setModelMetaRows (MetaModelHolder &io_metaRows) const =0 |
set meta rows values and calculate digests for types, parameters, tables and model More... | |
virtual void | build (MetaModelHolder &io_metaRows)=0 |
update metadata and write sql script to create new model from supplied metadata rows More... | |
virtual void | beginWorkset (const MetaModelHolder &i_metaRows, MetaSetLangHolder &io_metaSet)=0 |
start sql script to create new working set More... | |
virtual void | addWorksetParameter (const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet, const string &i_name, int i_subId, const string &i_value)=0 |
append scalar parameter value to sql script for new working set creation More... | |
virtual void | addWorksetParameter (const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet, const string &i_name, int i_subId, const list< string > &i_valueLst)=0 |
append parameter values to sql script for new working set creation More... | |
virtual void | endWorkset (const MetaModelHolder &i_metaRows, const MetaSetLangHolder &i_metaSet)=0 |
finish sql script to create new working set More... | |
virtual void | buildCompatibilityViews (const MetaModelHolder &i_metaRows) const =0 |
write sql script to create backward compatibility views More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from openm::IModelBuilder | |
static IModelBuilder * | create (const string &i_providerNames, const string &i_sqlDir, const string &i_outputDir, const string &i_sqliteDir) |
new model builder to create sql script specific to each db-provider. | |
class to build model creation sql from metadata rows.
|
overridevirtual |
append parameter values to sql script for new working set creation
Implements openm::IModelBuilder.
|
overridevirtual |
append scalar parameter value to sql script for new working set creation
Implements openm::IModelBuilder.
|
overridevirtual |
start sql script to create new working set
Implements openm::IModelBuilder.
|
overridevirtual |
update metadata and write sql script to create new model from supplied metadata rows
Implements openm::IModelBuilder.
|
overridevirtual |
write sql script to create backward compatibility views
Implements openm::IModelBuilder.
|
overridevirtual |
finish sql script to create new working set
Implements openm::IModelBuilder.
|
inlineoverridevirtual |
if true then create SQLite database
Implements openm::IModelBuilder.
|
overridevirtual |
set meta rows values and calculate digests for types, parameters, tables and model
Implements openm::IModelBuilder.