Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add binary datatype support for Postgres BYTEA
Waterline supports binary datatypes, so map them to BYTEA column types in Postgres. Convert buffers to hex strings (as per the tradition in node-postgres) starting with \x, which will automatically be converted back into Buffer objects when read from Postgres by node-postgres. See brianc/node-postgres#184 and parseByteA of https://github.com/brianc/node-postgres/blob/master/lib/types/textParsers.js
- Loading branch information