connect is a method of the sdb.dbapi module for opening database sessions.
The database is in the ONLINE operational state.
Syntax
connect (user, password, database, host ='', **config)
Attribute |
Description |
---|---|
user |
Name of the database user |
password |
Password of the database user Note that the password is case-sensitive. |
config |
|
Successful execution: Object of class sdb.dbapi.Connection
If an error occurs: Exception of sdb.dbapi.Error class
For more information, see the Python Database API Specifications V2.0 at http://www.python.org
Syntax
session = sdb.dbapi.connect ('MONA', 'RED', 'DEMODB', '', autocommit = 'off', sqlmode= 'oracle', isolation = 1, timeout = 90)