 
 |
You Are Here: SAP DB > Interfaces > SAP::DBTech::loader (Perl)
SAP DB is now SAP MaxDB! For more information, visit the SAP MaxDB pages in the SAP Developer Network.
Module SAP::DBTech::loader (Perl)
Module Contents class Loader
- Loader: Opens a connection.
- cmd: Executes a command and returns the resulting buffer as a string.
- rawCmd: Executes a command and returns the resulting buffer as a string without checking for errors.
- sql: Executes an SQL statement and returns the error code.
- release: Closes the connection.
Installation
Examples
- egLoader: Contains examples for all methods.
Exceptions
class Loader
constructor Loader
$session, $result = 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 the resulting buffer as a 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->cmd ($cmd)
Executes a command and returns the resulting buffer as a 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 raises an exception only if an
error occurs that is not related to the SQL statement .
release
$session->release ()
Closes the connection.
Installation
Add <dependent_path>/misc to PERL5LIB.
Examples
egRPM: Contains examples for all methods.
egRPM.pl
Exceptions
- CommunicationError: The communication link to the server failed.
- LoaderServError: The execution of the command on the server resulted in an error.
|
|
|