constructor Loader
session = loader.Loader (server_node, database_name)
Opens a connection. An empty server node will search for a Loader Server on the local machine.
cmd
output = session.cmd (cmd)
Executes a command and returns resulting buffer as string. Any error will result in an exception.
For the format of the paramter $cmd please see the documentation of the
SAP DB Loader.
rawCmd
output = session.rawCmd (cmd)
Executes a command and returns resulting buffer as string without checking for errors.
For the format of the paramter $cmd please see the documentation of the
SAP DB Loader.
sql
result = session.sql (cmd)
Executes an SQL statement and returns the error code. This method does not raise an exception
unless an error occurs that is not related to this SQL statement.
release
session.release ()
Closes the connection.