sequel_4_dataset_methods.rb

lib/sequel/extensions/sequel_4_dataset_methods.rb
Last Update: 2019-01-10 07:53:39 -0800

This adds the following dataset methods:

and

alias for where

exclude_where

alias for exclude

interval

Returns max - min, using a single query

range

Returns min..max, using a single query

It is only recommended to use this for backwards compatibility.

You can load this extension into specific datasets:

ds = DB[:table]
ds = ds.extension(:sequel_4_dataset_methods)

Or you can load it into all of a database’s datasets, which is probably the desired behavior if you are using this extension:

DB.extension(:sequel_4_dataset_methods)

Related module: Sequel::Sequel4DatasetMethods