class Sequel::ADO::Access::AdoSchema::Column
Constants
- DATA_TYPE
Public Class Methods
new(row)
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 47 def initialize(row) @row = row end
Public Instance Methods
[](col)
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 51 def [](col) @row[col] end
allow_null()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 55 def allow_null self["IS_NULLABLE"] end
db_type()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 63 def db_type t = DATA_TYPE[self["DATA_TYPE"]] if t == "DECIMAL" && precision t + "(#{precision.to_i},#{(scale || 0).to_i})" elsif t == "TEXT" && maximum_length && maximum_length > 0 t + "(#{maximum_length.to_i})" else t end end
default()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 59 def default self["COLUMN_DEFAULT"] end
maximum_length()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 82 def maximum_length self["CHARACTER_MAXIMUM_LENGTH"] end
precision()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 74 def precision self["NUMERIC_PRECISION"] end
scale()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 78 def scale self["NUMERIC_SCALE"] end