Sunday
Feb192012

SquidQueryData

  • Retrieves data from a column in SQUID at the specified index (row).
  • The data is not removed from SQUID.

Prototype

char* SquidQueryData(int iSquid, char* sParam, int iIndex);

  • Parameters
iSquidSquid Connection Handle
sParamString containing the name of the column
iIndexRow index of the row to query (1-based)
  • Return Values
char*Operation successful, data element retrieved
""Error occurred, call SquidGetLastError for details

Example

int iSquid;
lr_load_dll("SQUID-REST.dll");
iSquid = SquidConnect("http://localhost:8000");
SquidCreateColumn(iSquid, "NewColumn");
SquidSendData(iSquid, "NewColumn", "Data Row 1");
SquidSendData(iSquid, "NewColumn", "Data Row 2");
SquidSendData(iSquid, "NewColumn", "Data Row 3");
SquidQueryData(iSquid, "NewColumn", 1);
SquidDisconnect(iSquid);