acs::db::nsdb-postgresql method call membership_rel new (public)
<instance of acs::db::nsdb-postgresql> call membership_rel new \ [ -dbn dbn ] [ -rel_id rel_id ] [ -rel_type rel_type ] \ -object_id_one object_id_one -object_id_two object_id_two \ [ -member_state member_state ] [ -creation_user creation_user ] \ [ -creation_ip creation_ip ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: integer {character varying} integer integer {character varying} integer {character varying}
- Switches:
- -dbn (optional)
- -rel_id (optional, accept empty)
- -rel_type (optional, defaults to
"membership_rel"
)- -object_id_one (required)
- -object_id_two (required)
- -member_state (optional, defaults to
"approved"
)- -creation_user (optional, accept empty)
- -creation_ip (optional, accept empty)
- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select membership_rel__new(CAST(:rel_id AS integer),:rel_type,CAST(:object_id_one AS integer),CAST(:object_id_two AS integer),:member_state,CAST(:creation_user AS integer),:creation_ip)}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle