Sha256: 28ceeb69b7b7a04dc1622f44485bf8cb40f8af165cd57a36fb8b24895481a652

Contents?: true

Size: 1.02 KB

Versions: 5

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

# we need this for a coder
require "bigdecimal"

require_relative "mini_sql/version"
require_relative "mini_sql/connection"
require_relative "mini_sql/deserializer_cache"
require_relative "mini_sql/builder"
require_relative "mini_sql/inline_param_encoder"

module MiniSql
  if RUBY_ENGINE == 'jruby'
    module Postgres
      autoload :Connection, "mini_sql/postgres_jdbc/connection"
      autoload :DeserializerCache, "mini_sql/postgres_jdbc/deserializer_cache"
    end
  else
    module Postgres
      autoload :Coders, "mini_sql/postgres/coders"
      autoload :Connection, "mini_sql/postgres/connection"
      autoload :DeserializerCache, "mini_sql/postgres/deserializer_cache"
    end

    module Sqlite
      autoload :Connection, "mini_sql/sqlite/connection"
      autoload :DeserializerCache, "mini_sql/sqlite/deserializer_cache"
    end

    module Mysql
      autoload :Connection, "mini_sql/mysql/connection"
      autoload :DeserializerCache, "mini_sql/mysql/deserializer_cache"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mini_sql-0.3 lib/mini_sql.rb
mini_sql-0.2.5 lib/mini_sql.rb
mini_sql-0.2.4 lib/mini_sql.rb
mini_sql-0.2.3-java lib/mini_sql.rb
mini_sql-0.2.3 lib/mini_sql.rb