Fork me on GitHub
Library for MQL5 (MetaTrader) with support for Spark
CSqlObject Class Reference

Detailed Description

A base class for generating data as an array.

Inheritance diagram for CSqlObject:
COrderSqlObjectCast CSqlObjectSnapShot CTesterSql

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

Public Member Functions

virtual bool toSqlTable (string &types[][2], string &primaryKeys[])
 Create a table. More...
 
virtual bool toSqlRecord (string &list[][2])
 Forming data for writing to a table. More...
 

Member Function Documentation

◆ toSqlRecord()

virtual bool CSqlObject::toSqlRecord ( string &  list[][2])
virtual

Forming data for writing to a table.

Parameters
[out]list[x][0] = name, [x][1] = data
Returns
True if the data is formed, and otherwise False.

Reimplemented in COrderSqlObjectCast, CTesterSql, and CSqlObjectSnapShot.

◆ toSqlTable()

virtual bool CSqlObject::toSqlTable ( string &  types[][2],
string &  primaryKeys[] 
)
virtual

Create a table.

Parameters
[out]types[x][0] = name, [x][1] = type
[out]primaryKeyshttps://en.wikipedia.org/wiki/Primary_key
Returns
True if the data is formed, and otherwise False.

Reimplemented in CSqlObjectSnapShot, COrderSqlObjectCast, and CTesterSql.