lib/ardb.rb in ardb-0.27.2 vs lib/ardb.rb in ardb-0.27.3

- old
+ new

@@ -33,20 +33,26 @@ if establish_connection ActiveRecord::Base.establish_connection(self.config.db_settings) end end + def self.escape_like_pattern(pattern, escape_char = nil) + self.adapter.escape_like_pattern(pattern, escape_char) + end + class Config include NsOptions::Proxy namespace :db do - option :adapter, String, :required => true - option :database, String, :required => true - option :encoding, String, :required => false - option :host, String, :required => false - option :port, Integer, :required => false - option :username, String, :required => false - option :password, String, :required => false + option :adapter, String, :required => true + option :database, String, :required => true + option :encoding, String, :required => false + option :host, String, :required => false + option :port, Integer, :required => false + option :username, String, :required => false + option :password, String, :required => false + option :pool, Integer, :required => false + option :checkout_timeout, Integer, :required => false end option :db_file, Pathname, :default => ENV['ARDB_DB_FILE'] option :root_path, Pathname, :required => true option :logger, :required => true