acs::db::nsdb-postgresql method call rel_segment get_or_new (public)

 <instance of acs::db::nsdb-postgresql[i]> call rel_segment get_or_new \
    [ -dbn dbn ] -group_id group_id  -rel_type rel_type  \
    [ -segment_name segment_name ]

Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl

Automatically generated method TYPES: integer {character varying} {character varying}

Switches:
-dbn (optional)
-group_id (required)
-rel_type (required)
-segment_name (optional, accept empty)

Testcases:
No testcase defined.
Source code:
db_with_handle -dbn $dbn __DB {
   set s [ns_pg_bind 0or1row $__DB {select rel_segment__get_or_new(CAST(:group_id AS integer),:rel_type,:segment_name)}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: