OpenM++ runtime library (libopenm)
openm::TableExprRow Struct Reference

table_expr table row. More...

Inheritance diagram for openm::TableExprRow:
Collaboration diagram for openm::TableExprRow:

Public Member Functions

 TableExprRow (int i_modelId, int i_tableId, int i_exprId)
 create row with supplied key field values.
 
 TableExprRow (void)
 create row with default empty field values.
 
const string columnName (void) const
 retrun db column name based on expression id, example: ex_1 More...
 

Static Public Member Functions

static bool isKeyLess (const TableExprRow &i_left, const TableExprRow &i_right)
 less comparator by unique key: model id, model table id, expr id.
 
static bool isKeyEqual (const TableExprRow &i_left, const TableExprRow &i_right)
 equal comparator by unique key: model id, model table id, expr id.
 
- Static Public Member Functions inherited from openm::IMetaRow< TableExprRow >
static bool keyLess (const IRowBaseUptr &i_left, const IRowBaseUptr &i_right)
 less comparator by row primary key.
 
static bool keyEqual (const IRowBaseUptr &i_left, const IRowBaseUptr &i_right)
 equal comparator by row primary key.
 

Public Attributes

int modelId
 model_id INT NOT NULL
 
int tableId
 table_id INT NOT NULL
 
int exprId
 expr_id INT NOT NULL
 
string name
 expr_name VARCHAR(255) NOT NULL
 
int decimals
 expr_decimals INT NOT NULL
 
string srcExpr
 expr_src VARCHAR(255) NOT NULL
 
string sqlExpr
 expr_sql VARCHAR(2048) NOT NULL
 

Detailed Description

table_expr table row.

Member Function Documentation

◆ columnName()

const string TableExprRow::columnName ( void  ) const

retrun db column name based on expression id, example: ex_1

retrun db column name based on expression id, example: expr1


The documentation for this struct was generated from the following files: