SQUID Functions

 

  • The SQUID functions, and their examples, assume that the SQUID server has been started with an address of http://localhost:8000.
  • Validation of the function calls can be handled by checking the return value and calling SquidGetLastError().

 

Entries in SquidRenameColumn (1)

Thursday
Feb212013

SquidRenameColumn

  • Renames a column in SQUID.

Prototype

int SquidRenameColumn(int iSquid, char* sFromColumn, char* sToColumn);

  • Parameters
iSquidSquid Connection Handle
sFromColumnExisting column name to be renamed
sToColumnNew column name
  • Return Values
0Operation successful
-1Error occurred, call SquidGetLastError for details

Example

int iSquid;
lr_load_dll("SQUID-REST.dll");
iSquid = SquidConnect("http://localhost:8000");
SquidSendData(iSquid, "Column 1", "user001");
SquidRenameColumn(iSquid, "Column 1", "users");
SquidDisconnect(iSquid);