module ArJdbc::NuoDB::ColumnExtensions

COLUMNS ================================================================

Public Instance Methods

extract_limit(sql_type) click to toggle source
Calls superclass method
# File lib/arjdbc/nuodb/adapter.rb, line 35
def extract_limit(sql_type)
  case sql_type
    when /^smallint/i
      2
    when /^int/i
      4
    when /^bigint/i
      8
    else
      super
  end
end
simplified_type(field_type) click to toggle source

Maps NuoDB types to logical rails types.

Calls superclass method
# File lib/arjdbc/nuodb/adapter.rb, line 20
def simplified_type(field_type)
  case field_type
    when /bit/i then
      :boolean
    when /timestamp/i then
      :timestamp
    when /time/i then
      :time
    when /date/i then
      :date
    else
      super
  end
end