pylogicaldecoding
pylogicaldecoding copied to clipboard
Python interface to PostgreSQL logical decoding
at the moment, the only dealoc is done by python. Probably linked with #13
``` ... feedback... 0/0 feedback... 0/0 ^C*** Error in `/home/bdupuis/.virtualenvs/pyld2/bin/python': free(): invalid pointer: 0x00007f20023f18b1 *** ``` Sometimes it just segfaults.
probably by adding a log callback on the reader. In a first time, keep `if (verbose)` stuff, but add verbose on the reader (v0.1)
Add a `contrib` module that contains high level (though less generic) classes (e.g. using a fixed master decoder to expose methods like `update(self, table, old_dict, new_dict)`).
Most of them are ValueError. Maybe we should mimic psycopg2 exceptions
Unit testing gonna be hard as most function call the master at some point and most of code is C. at the moment only functional testing on a live DB...