Class: DbAgile::Core::Schema::Logical::Relview

Inherits:
Part show all
Defined in:
lib/dbagile/core/schema/logical/relview.rb

Instance Attribute Summary

Attributes inherited from Part

#definition, #name

Attributes inherited from SchemaObject

#parent, #status

Instance Method Summary collapse

Methods inherited from Part

#_sanity_check, #dup, #initialize, #look_same_as?, #visit

Methods inherited from SchemaObject

#ancestors, #attribute?, #builder_args, #builder_handler, #candidate_key?, #composite?, #constraint?, #foreign_key?, #index?, #logical?, #outside_dependencies, #outside_dependents, #part?, #physical?, #primary_key?, #relation_variable, #relvar?, #relview?, #schema

Constructor Details

This class inherits a constructor from DbAgile::Core::Schema::Part

Instance Method Details

#_semantics_check(clazz, buffer) ⇒ Object

See Also:



21
22
# File 'lib/dbagile/core/schema/logical/relview.rb', line 21

def _semantics_check(clazz, buffer)
end

#dependencies(include_parent = false) ⇒ Object

See Also:



12
13
14
# File 'lib/dbagile/core/schema/logical/relview.rb', line 12

def dependencies(include_parent = false)
  include_parent ? [ parent ] : []
end

#to_sObject

Returns a string representation



34
35
36
# File 'lib/dbagile/core/schema/logical/relview.rb', line 34

def to_s
  "Relview #{name} #{definition.inspect}"
end

#to_yaml(opts = {}) ⇒ Object

Delegation pattern on YAML flushing



29
30
31
# File 'lib/dbagile/core/schema/logical/relview.rb', line 29

def to_yaml(opts = {})
  definition.to_yaml(opts)
end