Parent

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::JdbcColumn

Constants

COLUMN_TYPES

Attributes

limit[W]
precision[W]

Public Class Methods

binary_to_string(value) click to toggle source
# File lib/jdbc_adapter/jdbc_sqlite3.rb, line 369
def self.binary_to_string(value)
  value.gsub(/%00|%25/) do |b|
    case b
      when "%00" then "\00""
      when "%25" then "%"
    end
  end
end
new(config, name, default, *args) click to toggle source
# File lib/active_record/connection_adapters/jdbc_adapter.rb, line 276
def initialize(config, name, default, *args)
  dialect = config[:dialect] || config[:driver]
  for reg, func in COLUMN_TYPES
    if reg === dialect.to_s
      func.call(config,self)
    end
  end
  super(name,default_value(default),*args)
  init_column(name, default, *args)
end
string_to_binary(value) click to toggle source
# File lib/jdbc_adapter/jdbc_sqlite3.rb, line 360
def self.string_to_binary(value)
  value.gsub(/\00||%/) do |b|
    case b
      when "\00"" then "%00"
      when "\%"  then "%25"
    end
  end
end

Public Instance Methods

default_value(val) click to toggle source
# File lib/active_record/connection_adapters/jdbc_adapter.rb, line 290
def default_value(val)
  val
end
init_column(*args) click to toggle source
# File lib/active_record/connection_adapters/jdbc_adapter.rb, line 287
def init_column(*args)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.