Module Interface Methods

The API used for module interface.

connect
Constructs a connection object representing a connection to a database. The method accepts these keyword arguments:
  • user – the user login name that the connection uses to log on to a server.
  • password – the password that a connection uses when logging on to a server.
  • servername – defines the Adaptive Server name to which client programs connects. If this argument is not specified then the DSQUERY environment variable defines the Adaptive Server name.
sybpydb.connect(user='name', password='password string', servername='ase servername')