Method: SQLite3::Value#type

Defined in:
lib/sqlite3/value.rb

#typeObject



45
46
47
48
49
50
51
52
53
# File 'lib/sqlite3/value.rb', line 45

def type
  case @driver.value_type( @handle )
    when Constants::ColumnType::INTEGER then :int
    when Constants::ColumnType::FLOAT   then :float
    when Constants::ColumnType::TEXT    then :text
    when Constants::ColumnType::BLOB    then :blob
    when Constants::ColumnType::NULL    then :null
  end
end