Re: Interest in serializing composite types?
"David E. Wheeler" <[email protected]> Mon, 25 Aug 2014 15:43:17 -0700
| Newsgroups | gmane.comp.db.postgresql.dbdpg |
|---|---|
| Message-ID | <[email protected]> |
On Aug 25, 2014, at 3:41 PM, Greg Sabino Mullane <[email protected]> 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
signature.asc
(application/pgp-signature, 842 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT+7wFAAoJEJLfYnT4yIHxRMEQAJBUyjCmAby4Q2PIZjPa2Q0A RXWBvbUqBsiM2aElcDL+7YwqHm0ePBHnY8NnR0wB2yY+lJ47GCO3Vbkwj3UG4hRi M/Ev6qGlkqp5pp5Vl8nKWNxbneSjFhST7vsGpJeqSe3OO4BVacrByj/IzyooSeNY bjmUBt5ZYILhREJCWfe7dVQJ0Eab7uWxx0yay6gBr9HpVPPEiwRV1E7G1VR3ATYp /LaEli2WAf7fAqYDX7CDi9fPkJ+L2JjA0eODRJN+mMzgZWn+fAtcpCZDZjTxqxIG AVlxvVtdt1+bkP/aa+KvhXIvbZ5Y35x08C16XdZQmDZ9tgNoyO/tWIUHE7qd9kCR Gf45FaXpguM0rKWp8MY2UNo1g6dtDRt7TyXDP1I4ICwqx1vtpEGmbSu69vdBIWq5 NjW2VsvUV2WdbXiz65SXp2bAxEsgEyXsfqSL7Wc/zL5l5PnJXoWhCXUTkoscK2u+ uL30xU4eEKAEbxIpQZhCpcIEcM98OosGiR5pjtc2tVxP7aA5T1HrvEaREC4Yg2H6 PerVfSzv1moaJklotqUygOif6p25k3x6jCV2miv/TsdcmlJByA0IkHX/b5+iR2/w DFb+vGoeWBZALm9QYEMzjSagA5I3JTlJ6Of30Ca9ntYmG/GXjYMsGIPj90GHJDDL IwZLtsajzp7KEz8Slkl1 =iAwF -----END PGP SIGNATURE-----