tableGet

int tableGet( const wxString& tblName, 
                const wxDateTime& from, 
                const wxDateTime& to,
                wxArrayString& resultArray,
                bool bFull = false  )

Parameters

tblName

Name of an existing table.

from

Datetime from which data should be fetched. Should be given on ISO 8601 format YY-MM-DDTHH:MM:SS.

to

Datetime up to which data is fetched. Should be given on ISO 8601 format YY-MM-DDTHH:MM:SS.

resultArray

String array that is filled with resulting rows (if any) from the table. The format is

'count' rows<CR><LF>
YY-MM-DDTHH:MM:SSsss, value1[,other fields]<CR><LF>
YY-MM-DDTHH:MM:SSsss, value2[,other fields]<CR><LF>
YY-MM-DDTHH:MM:SSsss, value3[,other fields]<CR><LF>
...
YY-MM-DDTHH:MM:SS, valuen[,other fields]<CR><LF>
+OK - Success.<CR><LF>

bFull

If true all fields of a table row is returned (other fields above) in a comma separated list. Note that datetime is always listed first followed by value regardless of how the columns of the table is arranged.

Return Value

CANAL_ERROR_SUCCESS on success or an error code on failure.

Description

Get data from a named table in a range to-from. One can fetch all columns of the table (bFull) or just datetime and value (default).


Very Simple Control Protocol
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author((s).

results matching ""

    No results matching ""