Sunday
Feb192012
SquidQueryColumn
- Retrieves all data from a column in SQUID.
- The data is not removed from SQUID.
Prototype
char* SquidQueryColumn(int iSquid, char* sParam, char* sDelimiter);
- Parameters
iSquid Squid Connection Handle sParam String containing the name of the column sDelimiter Delimiter used to separate data values
- Return Values
char* Operation successful, column data retrieved "" Error occurred, call SquidGetLastError for details
Example
char* ptr;
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");
ptr = SquidQueryColumn(iSquid, "NewColumn", ";");
lr_output_message("NewColumn = %s", ptr);
ptr = SquidQueryColumn(iSquid, "NewColumn", "*$*");
lr_output_message("NewColumn = %s", ptr);
SquidDisconnect(iSquid);