Class: Sequel::ADO::Access::AdoSchema

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#criteriaObject (readonly)

Returns the value of attribute criteria.



20
21
22
# File 'lib/sequel/adapters/ado/access.rb', line 20

def criteria
  @criteria
end

#typeObject (readonly)

Returns the value of attribute type.



20
21
22
# File 'lib/sequel/adapters/ado/access.rb', line 20

def type
  @type
end