Oh cool! I was writing array values manually as literals, and also parsing them out manually from the string. I only store ints or floats in my arrays for now.
Thank you very much for your hard work! François François Beausoleil http://blog.teksol.info/ Le mercredi 7 mars 2012 à 04:19, "Florian Aßmann" a écrit : > Yeah - that's great news! Thanks for your hard work! > > > On Tue, Mar 6, 2012 at 1:55 PM, Jeremy Evans <[email protected] > > (mailto:[email protected])> wrote: > > > I've added a pg_array extension to Sequel with pretty decent support for > > > PostgreSQL string/numeric arrays: > > > https://github.com/jeremyevans/sequel/commit/dc25a56e342cde055bac9da209bf731e58742d11 > > > > > > There is still a bit more work necessary to easily use PostgreSQL arrays > > > with models, but this at least makes it easy for datasets. Unlike the > > > sequel_column_type_array extension, this supports more types of arrays, as > > > well as multi-dimensional arrays. As far as I know, it's the only ruby > > > parser that supports multi-dimensional string arrays. The string array > > > parser is probably fairly slow, I may add a ragel-based parser to > > > sequel_pg > > > later if people are finding it to be a bottleneck (send ruby-prof output > > > with your request). > > > > > > Anyway, if you are a PostgreSQL array user, please give this new > > > extension a > > > shot. I'll be expanding on it to make it work nicely with models, and > > > probably add another extension that makes it possible to use array > > > operators > > > without dropping to literal SQL. > > > > > > Thanks, > > > Jeremy > > > > > > -- > You received this message because you are subscribed to the Google Groups > "sequel-talk" group. > To post to this group, send email to [email protected] > (mailto:[email protected]). > To unsubscribe from this group, send email to > [email protected] > (mailto:[email protected]). > For more options, visit this group at > http://groups.google.com/group/sequel-talk?hl=en. -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
