Class: ActiveRecord::ConnectionAdapters::SQLite3Column

Inherits:
JdbcColumn
  • Object
show all
Includes:
ArJdbc::SQLite3::Column
Defined in:
lib/arjdbc/sqlite3/adapter.rb

Instance Attribute Summary

Attributes inherited from JdbcColumn

#limit, #precision

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ArJdbc::SQLite3::Column

#init_column, #type_cast

Methods inherited from JdbcColumn

column_types, #default_value, driver_constants, #init_column, reset_constants, reset_constants!

Constructor Details

#initialize(name, *args) ⇒ SQLite3Column

Returns a new instance of SQLite3Column.



404
405
406
407
408
409
410
# File 'lib/arjdbc/sqlite3/adapter.rb', line 404

def initialize(name, *args)
  if Hash === name
    super
  else
    super(nil, name, *args)
  end
end

Class Method Details

.binary_to_string(value) ⇒ Object



419
420
421
422
423
424
# File 'lib/arjdbc/sqlite3/adapter.rb', line 419

def self.binary_to_string(value)
  if value.respond_to?(:encoding) && value.encoding != Encoding::ASCII_8BIT
    value = value.force_encoding(Encoding::ASCII_8BIT)
  end
  value
end

.string_to_binary(value) ⇒ Object



415
416
417
# File 'lib/arjdbc/sqlite3/adapter.rb', line 415

def self.string_to_binary(value)
  value
end

Instance Method Details

#call_discovered_column_callbacksObject



412
413
# File 'lib/arjdbc/sqlite3/adapter.rb', line 412

def call_discovered_column_callbacks(*)
end