Re: Interest in serializing composite types?
[email protected] ("David E. Wheeler") Mon, 25 Aug 2014 10:53:49 -0700
| Newsgroups | perl.dbd.pg |
|---|---|
| Message-ID | <[email protected]> |
On Aug 25, 2014, at 10:52 AM, Greg Sabino Mullane <[email protected]> wrote: > The biggest problem is that any composite types are going to be user-defined > types, and thus DBD::Pg cannot know about them in advance (as it does for > arrays). This problem has reared its head already. We can query the system > catalogs to gather information about data types, but the key point is when? > On connection? When we encounter an unknown type? (tricky, as we are already > inside of an active transaction). Perhaps allow the user to call some method > that tells us to grab the information? I'm thinking some combination of > the former and latter will work: allows a connection attribute that says > "grab information about all user types right after you connect" as well as a > method that does the same thing (or allows some wildcards, etc.). Once that > is in place, it should be relatively easy to roll multiple columns into a > hashref .. I think. Haven't actually dug into that part of the code yet :) OTOH, would be awesome to have an attribute to serialize and deserialize JSON and JSONB values. :-) D
signature.asc
(application/pgp-signature, 842 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT+3guAAoJEJLfYnT4yIHxytMP/01RDsrSRl1e0r+ewwdcU1g1 IYtqpQErTjo6RpU+U2aE3C72VHIX4mvVOYXaAx0UzxQ0ouU+5EpaBcjJ4HWVJ607 rGYwNYtaDROvCrPyYaBWAf3g3Yhg9FvVfgqjpXhnbCKb8wR8vDzI03kTaKY+6i8l u+fGObARujQ26b8Oh0P1Gz0TuqaHvb9wpqne5vV5mSmTDZ0BQcXCdfV+5aMZrHm8 azBUN6qMy6VKBWcDBPLUBkVKm4zl7oL1Nmsb6127MuW8DMUOMOS6lFRODAVWfKg/ Pc0a4Y+BhgtRH3FGgICKtSc5txY552aGjJC3oSMIlIaox9GPuDoTqmuwF/EsJkVP e1g602SWrbex6tGFrijM6JgX5ITudJcOCkxNNG1l9Izf2Izq8x432zvn5xrENykN h+/MpFp1clrkjm0qBM1sF6zEaiInfj62XBQvNk+gPGCCbdezfStAILyj/v5wR28m dDShYDc7HA0kaFk3PGhGwJP/4n3W/V3zWx5hycTil2KVSukyT5ZcLJTPtFekU+aO z48+jx5/95isyVZvAcpmXg3IArqS2JEfLzaqvfoIJ4LlhvhuQ3WNP+4ALyZ6TAx7 cEIZ2YqKpBHbTzldXjKacZqFJd86Gb0Oda9DiKeSgeKG7ebMrJdgDq3s3Nd89txR jZcd4ZJ38U/6GbwKo2Vg =8l4x -----END PGP SIGNATURE-----