Class: SybaseDefinitions::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/marjoree/sybase_definitions.rb

Instance Method Summary collapse

Constructor Details

#initialize(column_map) ⇒ Column

Returns a new instance of Column.



164
165
166
# File 'lib/marjoree/sybase_definitions.rb', line 164

def initialize( column_map )
    @map = column_map
end

Instance Method Details

#column_sizeObject



176
177
178
# File 'lib/marjoree/sybase_definitions.rb', line 176

def column_size
    return @map["COLUMN_SIZE"]
end

#exists?Boolean

Returns:

  • (Boolean)


180
181
182
# File 'lib/marjoree/sybase_definitions.rb', line 180

def exists?
    return !@map.nil?
end

#nullable?Boolean

Returns:

  • (Boolean)


172
173
174
# File 'lib/marjoree/sybase_definitions.rb', line 172

def nullable?
    return @map["IS_NULLABLE"].eql?( "YES" )
end

#typeObject



168
169
170
# File 'lib/marjoree/sybase_definitions.rb', line 168

def type
    return @map["TYPE_NAME"]
end