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 45 def initialize(row) @row = row end
Public Instance Methods
[](col)
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 49 def [](col) @row[col] end
allow_null()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 53 def allow_null self["IS_NULLABLE"] end
db_type()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 61 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 57 def default self["COLUMN_DEFAULT"] end
maximum_length()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 80 def maximum_length self["CHARACTER_MAXIMUM_LENGTH"] end
precision()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 72 def precision self["NUMERIC_PRECISION"] end
scale()
click to toggle source
# File lib/sequel/adapters/ado/access.rb, line 76 def scale self["NUMERIC_SCALE"] end