Constructor: RepMan (<server_node>, <database_name>)
<server_node> |
Server node name |
<database_name> |
Name of database instance |
Brief Description
Creates a connection to the
REPM ServerIf the server node name and name of the database instance are specified, the system assumes that the database instance, data, and REPM Server are located on a remote server.
If only the name of the database instance is specified, the system assumes that the database instance, data, and REPM Server are located on the local server. The suitable REPM Server is determined from the release of the specified database instance.
If neither the server node name nor the name of the database instance is specified, the system establishes a connection to the newest REPM Server on the local system.
The session is closed again when the object is deleted with
del session.session = repman.RepMan ('p12345', 'mydb')
Method: cmd (<commandstring>)
Brief Description
An
SQL statement or REPM Server command is executed.The script is terminated if the command fails.
output = session.cmd ("""
DATALOAD TABLE customerMethod: sql (<commandstring>)
Brief Description
An SQL or REPM Server command is executed.
Script execution is terminated when an REPM Server command fails.
A return code is output when an SQL statement fails.
result = session.sql ('EXISTS TABLE MYTABLE')