FAQ

On Aug 25, 2014, at 3:41 PM, Greg Sabino Mullane wrote:

That's already the plan. Since we know the json type oid already, we
will add a flag such that when on, json can be slung back and forth
seamlessly as arrays are now. Arrays are already fully automatic and
out the barn door, but perhaps a more generic interface such as:

$dbh->pg_automatic_convert('json');

In which 'json' can be replaced by other things down the road. Or even
allow a second arg to a user coderef/object that knows how to convert
certain things.
You would need two code refs for back and forth. Would be useful for hstore, too.

D

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 19 of 25 | next ›
Discussion Overview
groupdbd-pg @
categoriesperl
postedAug 24, '14 at 3:07p
activeAug 26, '14 at 11:28a
posts25
users8
websiteperl.org

People

Translate

site design / logo © 2019 Grokbase