# `DBAPI`

#### Subclass must define a makeConnection() method, which returns a newly-created connection object.

The DBAPI class is accessible via the `sqlobject.dbconnection` module.

`queryInsertID` must also be defined.

## Attributes

#### a `dbName`

    None

## Methods

#### f `oldUri(self)` ...

#### f `uri(self)` ...

#### f `connectionFromOldURI(cls, uri)` ...

#### f `connectionFromURI(cls, uri)` ...

#### f `soClassAdded(self, soClass)` ...

This is called for each new class; we use this opportunity to create an instance method that is bound to the class and this connection.

#### f `expireAll(self)` ...

Expire all instances of objects for this connection.

#### f `__init__(self, **kw)` ...

#### f `getConnection(self)` ...

#### f `releaseConnection(self, conn, explicit=False)` ...

#### f `printDebug(self, conn, s, name, type='query')` ...

#### f `query(self, s)` ...

#### f `queryAll(self, s)` ...

#### f `queryAllDescription(self, s)` ...

#### f `queryOne(self, s)` ...

#### f `transaction(self)` ...

#### f `queryInsertID(self, soInstance, id, names, values)` ...

#### f `iterSelect(self, select)` ...

#### f `accumulateSelect(self, select, *expressions)` ...

Apply an accumulate function(s) (SUM, COUNT, MIN, AVG, MAX, etc...) to the select object.

#### f `queryForSelect(self, select)` ...

#### f `createIndexSQL(self, soClass, index)` ...

#### f `createTable(self, soClass)` ...

#### f `createReferenceConstraints(self, soClass)` ...

#### f `createSQL(self, soClass)` ...

#### f `createTableSQL(self, soClass)` ...

#### f `createColumns(self, soClass)` ...

#### f `createReferenceConstraint(self, soClass, col)` ...

#### f `createColumn(self, soClass, col)` ...

#### f `dropTable(self, tableName, cascade=False)` ...

#### f `clearTable(self, tableName)` ...

#### f `createBinary(self, value)` ...

Create a binary object wrapper for the given database.

#### f `sqlrepr(self, v)` ...

#### f `__del__(self)` ...

#### f `close(self)` ...

#### f `createEmptyDatabase(self)` ...

Create an empty database.

See the source for more information.