$result = $session->rawCmd ($cmd_string);
rawCmd is a method of the class Loader. You use this method to send the Loader command specified under $cmd_string to the program Loader Server.
Errors returned by the Loader Server do not raise an exception. The return code starts with OK if the command was executed successfully; it starts with ERR if the command failed.
(See also: Method cmd)
The result of the Loader command is returned.
Specifying a valid Loader command
$result = $session->cmd ('CREATE TABLE testtable2 (colname INTEGER)')
print "result: '$result'\n";
The output appears as follows:
result: 'OK
'
Specifying an invalid Loader command
$result = $session->cmd ('invalid command')
print "result: '$result'\n";
The output appears as follows:
result: 'ERR
-25010
SQL error -3005 = Invalid SQL statement (error position: 1)'