On Sep 2, 11:21 am, Joel VanderWerf <[email protected]> wrote: > Jeremy Evans wrote: > > * Database#<< now always returns nil. Before, the return value was > > adapter dependent. > > I was going to ask why not return self, like other #<< in ruby, but then > I ran into this with Database#<< : > > The Sequel docs have this example: > > DB << "create table t (a text, b text)" > DB << "insert into t values ('a', 'b')" > > But: > > db = Sequel.sqlite :memorySequel::DatabaseConnectionError: TypeError
When calling an adapter method such as Sequel.sqlite, the first argument should be a hash of options or a string specifying the database, not a symbol. Just use: DB = Sequel.sqlite 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] 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 -~----------~----~----~----~------~----~------~--~---
