rattail.importing.postgresql

PostgreSQL data importers

class rattail.importing.postgresql.BulkToPostgreSQL(config=None, key=None, direction='import', fields=None, exclude_fields=None, fuzzy_fields=None, fuzz_factor=None, **kwargs)[source]

Base class for bulk data importers which target PostgreSQL on the local side.

create_object(key, data)[source]

Create and return a new local object for the given key, fully populated from the given host data. This may return None if no object is created.

flush_create_update()[source]

Perform any steps necessary to “flush” the create/update changes which have occurred thus far in the import.

flush_create_update_final()[source]

Perform any final steps to “flush” the created/updated data here.

setup()[source]

Perform any setup necessary, e.g. cache lookups for existing data.

teardown()[source]

Perform any cleanup after import, if necessary.