rheinwerk-verlag / pganonymize

A commandline tool for anonymizing PostgreSQL databases
http://pganonymize.readthedocs.io/
Other
41 stars 26 forks source link

#33: Configure psycopg2 to support UUID objects #49

Closed BuddhaOhneHals closed 1 year ago

BuddhaOhneHals commented 1 year ago

A fix for #33. See https://www.psycopg.org/docs/extras.html#uuid-data-type for more information.

Tested with following setup:

tables:
  - issue33:
      fields:
        - name:
            provider:
              name: fake.name
create table issue33
(
    id uuid not null constraint issue33_pk primary key,
    name       varchar(255) not null
);
hkage commented 1 year ago

LGTM :+1: