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);