Welcome to the python-comdb2 documentation!
comdb2
Python interfaces to Comdb2 databases
This package provides Python interfaces to Comdb2 databases.
Two different Python submodules are provided for interacting with Comdb2 databases.
comdb2.dbapi2
provides an interface that conforms to the Python Database API
Specification v2.0. If you’re
already familiar with the Python DB-API, or if you intend to use libraries that
expect to be given DB-API compliant connections, this module is likely to be
the best fit for you. Additionally, if a better way of communicating with
a Comdb2 database than libcdb2api
is ever introduced, this module will be
upgraded to it under the hood.
comdb2.cdb2
provides a thin, pythonic wrapper over cdb2api. If you’re more
familiar with libcdb2api
than with the Python DB-API and you don’t
anticipate a need to interact with libraries that require DB-API compliant
connections, this module may be simpler to get started with.
Contents
comdb2.dbapi2
DBAPI-2.0 compatible Comdb2 API- Overview
- API Documentation
- Constants
- Connections and Cursors
- Type Objects
- Type Constructors
- DatetimeUs
- Exceptions
Error
Warning
InterfaceError
DatabaseError
InternalError
OperationalError
ProgrammingError
IntegrityError
UniqueKeyConstraintError
ForeignKeyConstraintError
NonNullConstraintError
DataError
NotSupportedError
comdb2.dbapi2.Connection.Error
comdb2.dbapi2.Connection.Warning
comdb2.dbapi2.Connection.InterfaceError
comdb2.dbapi2.Connection.DatabaseError
comdb2.dbapi2.Connection.InternalError
comdb2.dbapi2.Connection.OperationalError
comdb2.dbapi2.Connection.ProgrammingError
comdb2.dbapi2.Connection.IntegrityError
comdb2.dbapi2.Connection.DataError
comdb2.dbapi2.Connection.NotSupportedError
comdb2.cdb2
Thin, pythonic wrapper over cdb2api- Comdb2 to Python Type Mappings
comdb2.factories
Factory functions for use with Comdb2 handles- Best Practices, Tips, and Tricks