Function documentationLoader Class (sdb.loader Module) Locate this document in the navigation structure

 

Loader is a class of the sdb.loader module. You can use the methods of this class to execute Loader commands and SQL statements.

Features

Constructor Definition

Syntax Syntax

  1. Loader ()
End of the code.

When you call the constructor, the Loader is started on the local computer, but no connection to the database is established yet.

Example

  1. You start the Loader on the local computer:

    Syntax Syntax

    1. session = sdb.loader.Loader ()
    End of the code.
  2. You now have the following options, among others:

    • You open a database session (DEMODB database) on the local computer:

      Syntax Syntax

      1. session.cmd('USE DB DEMODB')
      End of the code.
    • You open a database session (DEMODB database) on the remote computer PARMA:

      Syntax Syntax

      1. session.cmd('USE DB DEMODB ON PARMA')
      End of the code.
    • You open a database session (DEMODB database) on the remote computer PARMA as database user MONA with password RED:

      Syntax Syntax

      1. session.cmd('USE USER MONA RED DB DEMODB ON PARMA')
      End of the code.
  3. You close the connection to the Loader and close the database session.

    Syntax Syntax

    1. session.release ()
    End of the code.