Sunday, August 17, 2008

[GENERAL] Open source PostgreSQL type parsers in PHP?

Hello.

Is there any open source and well-tested PHP libraries to parse and build the following PostgreSQL data types?

- arrays (including N-dimensional): {a,b,c}
- hstore: "a=>b, c=>d"
- ROW: ("a","b","(""c"",""d"")")

E.g. I have some PHP variable and want to build corresponding PostgreSQL value.
Or, I have fetched a PostgreSQL value as a string and want to parse it into PHP variable.

No comments: