File: sequel_3_dataset_methods.rb [sequel-4.23.0 Documentation]

Last Modified
  2015-08-01 07:51:31 +0000
Requires

## Description

This adds the following dataset methods:

[]= | filter with the first argument, update with the second
insert_multiple | insert multiple rows at once
set | alias for update
to_csv | return string in csv format for the dataset
db= | change the dataset's database
opts= | change the dataset's opts

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_3_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_3_dataset_methods)