ActiveRecord::ConnectionAdapters::Quoting

module ActiveRecord::ConnectionAdapters::Quoting

Public Instance Methods

fetch_type_metadata(sql_type) Show source
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 67
def fetch_type_metadata(sql_type)
  cast_type = lookup_cast_type(sql_type)
  SqlTypeMetadata.new(
    sql_type: sql_type,
    type: cast_type.type,
    limit: cast_type.limit,
    precision: cast_type.precision