Loader is a class of the sapdb.loader module.
The Loader class contains the following methods:
Loader ()
When the constructor is called, the Python Loader module starts Loader on the local computer. There is still no connection to a database instance.
· To create a connection on the local computer to the HOTELDB database instance:
session = sapdb.loader.Loader ()
session.cmd('USE SERVERDB HOTELDB')
· To create a connection on the GENUA computer to the HOTELDB database instance:
session = sapdb.loader.Loader ()
session.cmd('USE SERVERDB HOTELDB ON GENUA')
· To create a connection on the GENUA computer to the HOTELDB database instance for the user MONA:
session = sapdb.loader.Loader ()session.cmd('USE USER MONA RED SERVERDB HOTELDB ON GENUA')
Use the del session command to disconnect from the database instance.