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

Detailed Description

Write data to a file format MySQL.


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

Public Member Functions

int getHandle ()
 
string getFileName ()
 
string getTable ()
 
void setTable (string _table)
 
string getSchema ()
 
void setSchema (string _schema)
 
 CSqlFile ()
 
 CSqlFile (string _table, bool _append, string _schema="forex", string _filesuffix="")
 
bool createFile (string _table, bool _append, string _schema="forex", string _filesuffix="")
 
 ~CSqlFile ()
 
void close ()
 
bool createTable (CSqlObject &sqlobject, bool drop=true)
 
bool insert (CSqlObject &sqlobject)
 
string getString (string rec)
 
void transaction (bool commit=false)
 

Protected Attributes

int hsql
 
string table
 
string schema
 
string filename
 
uint transaction_count
 

Constructor & Destructor Documentation

◆ CSqlFile() [1/2]

CSqlFile::CSqlFile ( )

◆ CSqlFile() [2/2]

CSqlFile::CSqlFile ( string  _table,
bool  _append,
string  _schema = "forex",
string  _filesuffix = "" 
)

◆ ~CSqlFile()

CSqlFile::~CSqlFile ( )

Member Function Documentation

◆ close()

void CSqlFile::close ( )

◆ createFile()

bool CSqlFile::createFile ( string  _table,
bool  _append,
string  _schema = "forex",
string  _filesuffix = "" 
)

◆ createTable()

bool CSqlFile::createTable ( CSqlObject sqlobject,
bool  drop = true 
)

◆ getFileName()

string CSqlFile::getFileName ( )

◆ getHandle()

int CSqlFile::getHandle ( )

◆ getSchema()

string CSqlFile::getSchema ( )

◆ getString()

string CSqlFile::getString ( string  rec)

◆ getTable()

string CSqlFile::getTable ( )

◆ insert()

bool CSqlFile::insert ( CSqlObject sqlobject)

◆ setSchema()

void CSqlFile::setSchema ( string  _schema)

◆ setTable()

void CSqlFile::setTable ( string  _table)

◆ transaction()

void CSqlFile::transaction ( bool  commit = false)

Member Data Documentation

◆ filename

string CSqlFile::filename
protected

◆ hsql

int CSqlFile::hsql
protected

◆ schema

string CSqlFile::schema
protected

◆ table

string CSqlFile::table
protected

◆ transaction_count

uint CSqlFile::transaction_count
protected