New in version 2.3: Connections and cursors support the context management The connection to be closed or deallocated first). A connection will also beĬlosed upon deallocation (this requires all Cursor objects which use From that pointįorward all operations on the Connection object or any of its associatedĬursor objects will raise an InterfaceError. By default,Ī Connection can be closed by calling its close method. Transaction control and any changes are committed automatically. In autocommit mode, the connection operates without New in version 2.2: An optional autocommit parameter may be passed to Setting up a new database from within InformixDB. Name of the database no database will be selected. If the dsn doesn't include a servername the value of the environment nnect takes three arguments: A dsn which identifies theĭatabase and server to connect to, as recognized by ESQL's CONNECTĪn optional user and a corresponding password. > conn = user='me', password='something') To do anything useful with InformixDB one must connect to a database.
0 Comments
Leave a Reply. |