Sha256: 96788870b9fef352899efe8fef74be22f64b1854108fbd7a8dde4b05efcb1347

Contents?: true

Size: 421 Bytes

Versions: 11

Compression:

Stored size: 421 Bytes

Contents

module ROM
  module SQL
    module SQLite
      class TypeBuilder < Schema::TypeBuilder
        NO_TYPE = EMPTY_STRING

        # @api private
        def map_type(_, db_type, **_kw)
          if db_type.eql?(NO_TYPE)
            ROM::SQL::Types::SQLite::Any
          else
            super
          end
        end
      end
    end

    Schema::TypeBuilder.register(:sqlite, SQLite::TypeBuilder.new.freeze)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rom-sql-3.1.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-3.0.1 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-3.0.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.5.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.4.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.3.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.2.1 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.2.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.1.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.0.0 lib/rom/sql/extensions/sqlite/type_builder.rb
rom-sql-2.0.0.rc1 lib/rom/sql/extensions/sqlite/type_builder.rb