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.



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

#criteriaObject (readonly)

Returns the value of attribute criteria.



18
19
20
# File 'lib/sequel/adapters/ado/access.rb', line 18

def criteria
  @criteria
end

#typeObject (readonly)

Returns the value of attribute type.



18
19
20
# File 'lib/sequel/adapters/ado/access.rb', line 18

def type
  @type
end