1.4.17.2 Creating the Dictionary

The implementation should contain a dictionary named driver in the sub-package of the main module named pdbc. So for example, web.database will have a module web.database .pdbc which will contain a dictionary named driver similar to the following:

driver = {
    'converters':{
        'String':   base.BaseStringConverter(),
        'Text':     base.BaseTextConverter(),
        'Binary':   base.BaseBinaryConverter(),
        'Bool':     base.BaseBoolConverter(),
        'Integer':  base.BaseIntegerConverter(),
        'Long':     base.BaseLongConverter(),
        'Float':    base.BaseFloatConverter(),
        'Date':     base.BaseDateConverter(),
        'Datetime': base.BaseDatetimeConverter(),
        'Time':     base.BaseTimeConverter(),
    }
    'columnClass':base.BaseColumn,
    'tableClass':base.BaseTable,
    'cursorClass':Cursor,
    'connectionClass':Connection,
}

Where Connection and Cursor are classes derived from base.Connection and base.Cursor respectively.