sql (cmd_string)
sql is a method of the Loader class. This method is used to send the Loader Command specified under cmd_string or an SQL statement to the Loader Server program.
If the statement is executed successfully, the result value is 0
If executing the statement causes an SQL error, the number of the error message for the SQL statement is returned.
If executing the statement causes a Loader error, a LoaderError exception is triggered.
To query whether the CUSTOMER table exists:
result = session.sql ('EXISTS TABLE CUSTOMER')