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.rawCmd
('CREATE TABLE testtable2 (colname INTEGER)')
print repr (result)
Output:
'OK \012'
Specifying an invalid Loader command
result = session.rawCmd
('invalid command')
print repr (result)
Output:
' ERR\012-25010\012SQL error -3005 = Invalid SQL statement (error position: 1)'