stablekernel / postgresql-dart

Dart PostgreSQL driver: supports extended query format, binary protocol and statement reuse.
https://www.dartdocs.org/documentation/postgres/latest
BSD 3-Clause "New" or "Revised" License
129 stars 32 forks source link

Support for additional types (varchar, point, integerArray, textArray, doubleArray, jsonArray) #156

Closed schultek closed 3 years ago

schultek commented 3 years ago

I implemented the encoding and decoding of some additional types, especially some array types. I also changed the json type to jsonb and implemented a new json type, to be consistent with the postgres types.

I added the types to additional maps / switch statements that I could find, but I'm not sure I got everything. I would also need help writing tests for the new types.

isoos commented 3 years ago

@schultek I can't merge into this repo, but if you do submit this into my fork, I'll review and hopefully publish it: https://github.com/isoos/postgresql-dart (note: the most recent package:postgres was published by me)