Note 1

As a guideline, the connection constructor parameters should be implemented as keyword parameters for more intuitive use and follow this order of parameters.

dsn = Data source name as string
user = User name as string (optional)
password = Password as string (optional)
host = Hostname (optional)
database = Database name (optional)

For example, a connect could look like this:

connect(dsn='myhost:MYDB',user='guido',password='234$¶')

Get Python Programming On Win32 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.