acs::db::nsdb-postgresql method call content_type register_relation_type (public)
<instance of acs::db::nsdb-postgresql> call content_type register_relation_type \ [ -dbn dbn ] -content_type content_type -target_type target_type \ [ -relation_tag relation_tag ] [ -min_n min_n ] [ -max_n max_n ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: {character varying} {character varying} {character varying} integer integer
- Switches:
- -dbn (optional)
- -content_type (required)
- -target_type (required)
- -relation_tag (optional, defaults to
"generic")- -min_n (optional, defaults to
"0")- -max_n (optional, accept empty)
- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select content_type__register_relation_type(:content_type,:target_type,:relation_tag,CAST(:min_n AS integer),CAST(:max_n AS integer))}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)