Sha256: 45bf7ff4eb1816b1b23cf83e5d15936facdd89f874995c3252dee08ab911b934

Contents?: true

Size: 1.36 KB

Versions: 127

Compression:

Stored size: 1.36 KB

Contents

# frozen-string-literal: true

module Sequel
  # Hash of adapters that have been used. The key is the adapter scheme
  # symbol, and the value is the Database subclass.
  ADAPTER_MAP = {}
    
  # Hash of shared adapters that have been registered.  The key is the
  # adapter scheme symbol, and the value is the Sequel module containing
  # the shared adapter.
  SHARED_ADAPTER_MAP = {}

  # Array of all databases to which Sequel has connected.  If you are
  # developing an application that can connect to an arbitrary number of 
  # databases, delete the database objects from this (or use the :keep_reference
  # Database option or a block when connecting) or they will not get
  # garbage collected.
  DATABASES = []

  # A Database object represents a virtual connection to a database.
  # The Database class is meant to be subclassed by database adapters in order
  # to provide the functionality needed for executing queries.
  class Database
    OPTS = Sequel::OPTS
  end

  require_relative "database/connecting"
  require_relative "database/dataset"
  require_relative "database/dataset_defaults"
  require_relative "database/logging"
  require_relative "database/features"
  require_relative "database/misc"
  require_relative "database/query"
  require_relative "database/transactions"
  require_relative "database/schema_generator"
  require_relative "database/schema_methods"
end

Version data entries

127 entries across 110 versions & 2 rubygems

Version Path
sequel-5.32.0 lib/sequel/database.rb
sequel-5.31.0 lib/sequel/database.rb
sequel-5.30.0 lib/sequel/database.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/sequel-5.29.0/lib/sequel/database.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/sequel-5.26.0/lib/sequel/database.rb
sequel-5.29.0 lib/sequel/database.rb
sequel-5.28.0 lib/sequel/database.rb
sequel-5.27.0 lib/sequel/database.rb
tdiary-5.1.0 vendor/bundle/gems/sequel-5.26.0/lib/sequel/database.rb
sequel-5.26.0 lib/sequel/database.rb
sequel-5.25.0 lib/sequel/database.rb
sequel-5.24.0 lib/sequel/database.rb
sequel-5.23.0 lib/sequel/database.rb
sequel-5.22.0 lib/sequel/database.rb
sequel-5.21.0 lib/sequel/database.rb
sequel-5.20.0 lib/sequel/database.rb
tdiary-5.0.13 vendor/bundle/gems/sequel-5.18.0/lib/sequel/database.rb
sequel-5.19.0 lib/sequel/database.rb
tdiary-5.0.12.1 vendor/bundle/gems/sequel-5.18.0/lib/sequel/database.rb
sequel-5.18.0 lib/sequel/database.rb