Class: Sequel::ADO::Access::AdoSchema
- Defined in:
- lib/sequel/adapters/ado/access.rb
Defined Under Namespace
Classes: Column
Constant Summary collapse
- QUERY_TYPE =
{ :columns => 4, :indexes => 12, :tables => 20, :views => 23, :foreign_keys => 27 }
Instance Attribute Summary collapse
-
#criteria ⇒ Object
readonly
Returns the value of attribute criteria.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, crit) ⇒ AdoSchema
constructor
A new instance of AdoSchema.
Constructor Details
#initialize(type, crit) ⇒ AdoSchema
Returns a new instance of AdoSchema.
20 21 22 23 |
# File 'lib/sequel/adapters/ado/access.rb', line 20 def initialize(type, crit) @type = QUERY_TYPE[type] @criteria = Array(crit) end |
Instance Attribute Details
#criteria ⇒ Object (readonly)
Returns the value of attribute criteria.
18 19 20 |
# File 'lib/sequel/adapters/ado/access.rb', line 18 def criteria @criteria end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
18 19 20 |
# File 'lib/sequel/adapters/ado/access.rb', line 18 def type @type end |