Class: Exwiw::DbIntrospector::Column
- Inherits:
-
Data
- Object
- Data
- Exwiw::DbIntrospector::Column
- Defined in:
- lib/exwiw/db_introspector.rb
Overview
One column of a table, in the vocabulary DefaultMask.for speaks:
typeis an ActiveRecord-ish symbol (:string, :integer, ...) or nil when the database type has no equivalent there. nil is deliberate and safe: DefaultMask emits no mask for a type it does not recognize, so an exotic column is exported unmasked-but-flagged rather than masked with a value it cannot hold.limitis the character length for text-ish columns, else nil.arraymarks a PostgreSQL ARRAY column, where no scalar mask fits.defaultis the column's default as a Ruby scalar, or nil when it is absent or is an expression the database evaluates per row.
Instance Attribute Summary collapse
-
#array ⇒ Object
readonly
Returns the value of attribute array.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#array ⇒ Object (readonly)
Returns the value of attribute array
43 44 45 |
# File 'lib/exwiw/db_introspector.rb', line 43 def array @array end |
#default ⇒ Object (readonly)
Returns the value of attribute default
43 44 45 |
# File 'lib/exwiw/db_introspector.rb', line 43 def default @default end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit
43 44 45 |
# File 'lib/exwiw/db_introspector.rb', line 43 def limit @limit end |
#name ⇒ Object (readonly)
Returns the value of attribute name
43 44 45 |
# File 'lib/exwiw/db_introspector.rb', line 43 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type
43 44 45 |
# File 'lib/exwiw/db_introspector.rb', line 43 def type @type end |