Sha256: 35c480c22e5e9609abec69497f8c2808c88b97e71f5674c87c637636c3968632
Contents?: true
Size: 504 Bytes
Versions: 1
Compression:
Stored size: 504 Bytes
Contents
require "directive_record/query/sql" require "directive_record/query/mysql" require "directive_record/query/monetdb" module DirectiveRecord module Query def self.new(klass) class_for(klass.connection.class.name.downcase).new(klass) end private def self.class_for(connection_class) if connection_class.include?("mysql") MySQL elsif connection_class.include?("monetdb") MonetDB else raise NotImplementedError end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
directiverecord-0.1.0 | lib/directive_record/query.rb |