Sequel 0.4.2.1 has just been released. Here are the changes:

* Added Model.fetch alias for DB.fetch.set_model(Model)

You can now retrieve model instances with arbitrary SQL:

  Post.fetch('select * from posts where blah = "blah"')

* Added Database#create_view, #create_or_replace_view and #drop_view
methods. You can supply either a dataset or an SQL as the source for
the view. For example:

  DB.create_view(:my_view, 'SELECT x FROM y')
  DB.create_view(:another_view, DB[:items].where {!:item_sucks})

Also implemented are Dataset#create_view and #create_or_replace_view
convenience methods.

  DB[:items].where(:active => true).create_view(:active_items)

* Changed sequelizer code to silently fail on any error when requiring
parsetree and ruby2ruby.

* Fixed problem with field quoting in insert statements. This should
be useful for MySQL users.

* Refactored and fixed Dataset#reverse_order to work with field
quoting  - again good for MySQL users (thanks Christian).

best
Sharon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to