Sha256: fdc4d9ff5e81bb42a25c93ca4c5f2256c355d78cc9679ad033ead97dcef6980b

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 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 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(%w"connecting dataset dataset_defaults logging features misc query transactions schema_generator schema_methods", 'database')
end

Version data entries

16 entries across 14 versions & 2 rubygems

Version Path
sequel-4.49.0 lib/sequel/database.rb
sequel-4.48.0 lib/sequel/database.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/sequel-4.44.0/lib/sequel/database.rb
tdiary-5.0.5 vendor/bundle/gems/sequel-4.47.0/lib/sequel/database.rb
tdiary-5.0.5 vendor/bundle/gems/sequel-4.44.0/lib/sequel/database.rb
sequel-4.47.0 lib/sequel/database.rb
sequel-4.46.0 lib/sequel/database.rb
sequel-4.45.0 lib/sequel/database.rb
tdiary-5.0.4 vendor/bundle/gems/sequel-4.44.0/lib/sequel/database.rb
sequel-4.44.0 lib/sequel/database.rb
sequel-4.43.0 lib/sequel/database.rb
sequel-4.42.1 lib/sequel/database.rb
sequel-4.42.0 lib/sequel/database.rb
sequel-4.41.0 lib/sequel/database.rb
sequel-4.40.0 lib/sequel/database.rb
sequel-4.39.0 lib/sequel/database.rb