Sha256: a6c0c4a3f366f3e0056fb443a8c97e427368fc40583b9f3267d168c4d3501cca

Contents?: true

Size: 1.29 KB

Versions: 17

Compression:

Stored size: 1.29 KB

Contents

module Sequel
  # A dataset represents an SQL query, or more generally, an abstract
  # set of rows in the database.  Datasets
  # can be used to create, retrieve, update and delete records.
  # 
  # Query results are always retrieved on demand, so a dataset can be kept
  # around and reused indefinitely (datasets never cache results):
  #
  #   my_posts = DB[:posts].filter(:author => 'david') # no records are retrieved
  #   my_posts.all # records are retrieved
  #   my_posts.all # records are retrieved again
  #
  # Most dataset methods return modified copies of the dataset (functional style), so you can
  # reuse different datasets to access data:
  #
  #   posts = DB[:posts]
  #   davids_posts = posts.filter(:author => 'david')
  #   old_posts = posts.filter('stamp < ?', Date.today - 7)
  #   davids_old_posts = davids_posts.filter('stamp < ?', Date.today - 7)
  #
  # Datasets are Enumerable objects, so they can be manipulated using any
  # of the Enumerable methods, such as map, inject, etc.
  #
  # For more information, see the {"Dataset Basics" guide}[link:files/doc/dataset_basics_rdoc.html].
  class Dataset
    extend Metaprogramming
    include Metaprogramming
    include Enumerable
  end
  
  require(%w"query actions features graph prepared_statements misc mutation sql", 'dataset')
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
sequel-3.24.1 lib/sequel/dataset.rb
sequel-3.24.0 lib/sequel/dataset.rb
sequel-3.23.0 lib/sequel/dataset.rb
sequel-3.22.0 lib/sequel/dataset.rb
sequel-3.21.0 lib/sequel/dataset.rb
sequel-3.20.0 lib/sequel/dataset.rb
sequel-3.19.0 lib/sequel/dataset.rb
sequel-3.18.0 lib/sequel/dataset.rb
sequel-3.17.0 lib/sequel/dataset.rb
sequel-3.16.0 lib/sequel/dataset.rb
sequel-3.15.0 lib/sequel/dataset.rb
sequel-3.14.0 lib/sequel/dataset.rb
sequel-3.13.0 lib/sequel/dataset.rb
sequel-3.12.1 lib/sequel/dataset.rb
sequel-3.12.0 lib/sequel/dataset.rb
sequel-3.11.0 lib/sequel/dataset.rb
viking-sequel-3.10.0 lib/sequel/dataset.rb