sequel_4_dataset_methods.rb

Path: lib/sequel/extensions/sequel_4_dataset_methods.rb
Last Update: Sat Jun 02 02:04:22 +0000 2018

frozen-string-literal: true

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

[Validate]