relation::get (public)
relation::get -rel_id rel_id [ -element element ]
Defined in packages/acs-subsite/tcl/relation-procs.tcl
Return information about a relation for the given rel_id.
- Switches:
- -rel_id (required)
- The relation ID.
- -element (optional)
- If specified, return only this element.
- Returns:
- A dict containing rel_id, rel_type, object_id_one and object_id_two, or a single value when -element is specified.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: db_1row relation_info { select rel_type, object_id_one, object_id_two from acs_rels where rel_id = :rel_id } set data [dict create rel_id $rel_id rel_type $rel_type object_id_one $object_id_one object_id_two $object_id_two] if {$element ne ""} { return [dict get $data $element] } return $dataGeneric XQL file: packages/acs-subsite/tcl/relation-procs.xql
PostgreSQL XQL file: packages/acs-subsite/tcl/relation-procs-postgresql.xql
Oracle XQL file: packages/acs-subsite/tcl/relation-procs-oracle.xql