Sha256: 40d88753c620534cb6e5546cab6b688470db55e35206f950ebd53916867d3305

Contents?: true

Size: 1.94 KB

Versions: 4

Compression:

Stored size: 1.94 KB

Contents

# frozen_string_literal: true

# we need this for a coder
require "bigdecimal"

# used for builder
require "set"

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"
require_relative "mini_sql/decoratable"
require_relative "mini_sql/serializer"
require_relative "mini_sql/result"

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"
      autoload :PreparedConnection, "mini_sql/postgres/prepared_connection"
      autoload :PreparedCache,      "mini_sql/postgres/prepared_cache"
      autoload :PreparedBinds,      "mini_sql/postgres/prepared_binds"
    end

    module ActiveRecordPostgres
      autoload :Connection, "mini_sql/active_record_postgres/connection"
    end

    module Sqlite
      autoload :Connection,         "mini_sql/sqlite/connection"
      autoload :DeserializerCache,  "mini_sql/sqlite/deserializer_cache"
      autoload :PreparedCache,      "mini_sql/sqlite/prepared_cache"
      autoload :PreparedBinds,      "mini_sql/sqlite/prepared_binds"
      autoload :PreparedConnection, "mini_sql/sqlite/prepared_connection"
    end

    module Mysql
      autoload :Connection,         "mini_sql/mysql/connection"
      autoload :DeserializerCache,  "mini_sql/mysql/deserializer_cache"
      autoload :PreparedCache,      "mini_sql/mysql/prepared_cache"
      autoload :PreparedBinds,      "mini_sql/mysql/prepared_binds"
      autoload :PreparedConnection, "mini_sql/mysql/prepared_connection"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mini_sql-1.6.0 lib/mini_sql.rb
mini_sql-1.5.0 lib/mini_sql.rb
mini_sql-1.4.0 lib/mini_sql.rb
mini_sql-1.3.0 lib/mini_sql.rb