class DB::MariaDB::Native::Field
Public Instance Methods
boolean?()
click to toggle source
# File lib/db/mariadb/native/field.rb, line 109 def boolean? self[:length] == 1 && (self[:type] == :tiny || self[:type] == :long) end
inspect()
click to toggle source
# File lib/db/mariadb/native/field.rb, line 125 def inspect "\#<#{self.class} name=#{self.name} type=#{self.type} length=#{self[:length]}>" end
name()
click to toggle source
# File lib/db/mariadb/native/field.rb, line 113 def name self[:name] end
type()
click to toggle source
# File lib/db/mariadb/native/field.rb, line 117 def type if boolean? :boolean else self[:type] end end