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 }.freeze
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.
22 23 24 25 |
# File 'lib/sequel/adapters/ado/access.rb', line 22 def initialize(type, crit) @type = QUERY_TYPE[type] @criteria = Array(crit) end |
Instance Attribute Details
#criteria ⇒ Object (readonly)
Returns the value of attribute criteria.
20 21 22 |
# File 'lib/sequel/adapters/ado/access.rb', line 20 def criteria @criteria end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
20 21 22 |
# File 'lib/sequel/adapters/ado/access.rb', line 20 def type @type end |