acs::db::nsdb-postgresql method call content_type register_child_type (public)
<instance of acs::db::nsdb-postgresql> call content_type register_child_type \ [ -dbn dbn ] -parent_type parent_type -child_type child_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)
- -parent_type (required)
- -child_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_child_type(:parent_type,:child_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)