Loader is a class of the sdb.loader module. You can use the methods of this class to execute Loader commands and SQL statements.
Syntax
Loader ()
When you call the constructor, the Loader is started on the local computer, but no connection to the database is established yet.
You start the Loader on the local computer:
Syntax
session = sdb.loader.Loader ()
You now have the following options, among others:
You open a database session (DEMODB database) on the local computer:
Syntax
session.cmd('USE DB DEMODB')
You open a database session (DEMODB database) on the remote computer PARMA:
Syntax
session.cmd('USE DB DEMODB ON PARMA')
You open a database session (DEMODB database) on the remote computer PARMA as database user MONA with password RED:
Syntax
session.cmd('USE USER MONA RED DB DEMODB ON PARMA')
You close the connection to the Loader and close the database session.
Syntax
session.release ()