James Gardner: Home > Work > Code > Psycopg2Database > 0.1.0 > API Documentation

Psycopg2Database v0.1.0 documentation

API Documentation

psycopg2database.helper.dbport(conversion, flow)
psycopg2database.helper.insert_record(*k, **p)
psycopg2database.helper.postgresql_insert_record(connection, table_name, data_dict, primary_key_column_name=None, database=None)
Implementation of insert_record() for PostgreSQL. See insert_record() for details.
psycopg2database.helper.psycopg2UnicodeFetch(encoding)
psycopg2database.helper.psycopg2_update_config(flow, name, config)
psycopg2database.helper.psycopg2_utf8_fetch(conversion, state=None)

Convert the results of a cursor fetch to the correct format.

The conversion.value.cursor.description argument contains information about each value returned in the form of a 7-item tuple: (name, type_code, display_size, internal_size, precision, scale, null_ok). The .description attribute will be None for operations which do not return rows.

The type_code will be different for each driver.

James Gardner: Home > Work > Code > Psycopg2Database > 0.1.0 > API Documentation