Class: PgGraph::Type::TableType
- Inherits:
-
ArrayType
- Object
- HashTree::Set
- Node
- SchemaObject
- Type
- ArrayType
- PgGraph::Type::TableType
- Includes:
- TableObject
- Defined in:
- lib/pg_graph/type/type.rb
Overview
Note that the name of a TableType object is the record name in brackets while the name of a Table object is the pluralized record name
Constant Summary
Constants inherited from ArrayType
ArrayType::DEFAULT_MAX_DIMENSIONS
Instance Attribute Summary
Attributes inherited from ArrayType
Instance Method Summary collapse
- #array_type ⇒ Object
- #identifier ⇒ Object
-
#initialize(schema, record_type) ⇒ TableType
constructor
A new instance of TableType.
- #schema_identifier ⇒ Object
Methods included from TableObject
Methods inherited from ArrayType
Methods inherited from Type
#array?, #rank, #tuple?, #value?
Methods inherited from Node
#dump, #guid, #inspect, #inspect_inner
Constructor Details
#initialize(schema, record_type) ⇒ TableType
Returns a new instance of TableType.
396 397 398 399 |
# File 'lib/pg_graph/type/type.rb', line 396 def initialize(schema, record_type) constrain record_type, RecordType super(schema, nil, record_type) end |
Instance Method Details
#array_type ⇒ Object
394 |
# File 'lib/pg_graph/type/type.rb', line 394 def array_type() raise Error, "Array of TableType is not allowed" end |
#identifier ⇒ Object
401 402 403 |
# File 'lib/pg_graph/type/type.rb', line 401 def identifier "{#{element_type.identifier}}" end |
#schema_identifier ⇒ Object
405 406 407 |
# File 'lib/pg_graph/type/type.rb', line 405 def schema_identifier "{#{element_type.schema_identifier}}" end |