Module: DbAgile::Contract::Robust::Optimistic::Schema::TableDriven

Included in:
DbAgile::Contract::Robust::Optimistic
Defined in:
lib/dbagile/contract/robust/optimistic/schema/table_driven.rb

Instance Method Summary collapse

Instance Method Details

#column_names(*args, &block) ⇒ Object



25
26
27
28
29
30
# File 'lib/dbagile/contract/robust/optimistic/schema/table_driven.rb', line 25

def column_names(*args, &block)
  delegate.column_names(*args, &block)
rescue
  has_table!(args[0])
  raise
end

#has_column?(*args, &block) ⇒ Boolean

Returns:

  • (Boolean)

See Also:



9
10
11
12
13
14
# File 'lib/dbagile/contract/robust/optimistic/schema/table_driven.rb', line 9

def has_column?(*args, &block)
  delegate.has_column?(*args, &block)
rescue
  has_table!(args[0])
  raise
end

#heading(*args, &block) ⇒ Object



17
18
19
20
21
22
# File 'lib/dbagile/contract/robust/optimistic/schema/table_driven.rb', line 17

def heading(*args, &block)
  delegate.heading(*args, &block)
rescue
  has_table!(args[0])
  raise
end

#is_key?(*args, &block) ⇒ Boolean

Returns:

  • (Boolean)

See Also:

  • Schema::TableDriven#is_key


33
34
35
36
37
38
# File 'lib/dbagile/contract/robust/optimistic/schema/table_driven.rb', line 33

def is_key?(*args, &block)
  delegate.is_key?(*args, &block)
rescue
  has_table!(args[0])
  raise
end

#keys(*args, &block) ⇒ Object



41
42
43
44
45
46
# File 'lib/dbagile/contract/robust/optimistic/schema/table_driven.rb', line 41

def keys(*args, &block)
  delegate.keys(*args, &block)
rescue
  has_table!(args[0])
  raise
end