Sha256: dca41dd3b79e8cf0ed5a55818257f44ad41fe7e62fff4568284600db9fc82d9a
Contents?: true
Size: 968 Bytes
Versions: 3
Compression:
Stored size: 968 Bytes
Contents
require 'metaid' files = %w[ core_ext error connection_pool pretty_table expressions dataset migration model schema database ] dir = File.join(File.dirname(__FILE__), 'sequel') files.each {|f| require(File.join(dir, f))} module Sequel #:nodoc: class << self # call-seq: # Sequel::Database.connect(conn_string) # Sequel.connect(conn_string) # Sequel.open(conn_string) # # Creates a new database object based on the supplied connection string. # The specified scheme determines the database class used, and the rest # of the string specifies the connection options. For example: # DB = Sequel.open 'sqlite:///blog.db' def connect(*args) Database.connect(*args) end alias_method :open, :connect def single_threaded=(value) Database.single_threaded = value end end end class Object def Sequel(*args) Sequel.connect(*args) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sequel-0.1.9.10 | lib/sequel.rb |
sequel-0.1.9.11 | lib/sequel.rb |
sequel-0.1.9.12 | lib/sequel.rb |