cmd (cmd_string)
cmd 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.
The result of the Loader command is returned.
If the Loader Server program returns an error, an exception of the class LoaderError is raised.
Specifying a valid Loader command
result = session.cmd
('CREATE TABLE testtable (colname INTEGER)')
print repr (result)
Output:
''
Specifying an invalid Loader command
result = session.cmd
('invalid command')
print repr (result)
Output:
Traceback (innermost
last):
loader.LoaderError: loader.LoaderError: [-25010] SQL [-3005] Invalid SQL
Statement (error position: 1)
(See also: Method rawCmd)