acs::db::nsdb-postgresql method call acs_rel new (public)
<instance of acs::db::nsdb-postgresql> call acs_rel new \ [ -dbn dbn ] [ -rel_id rel_id ] [ -rel_type rel_type ] \ -object_id_one object_id_one -object_id_two object_id_two \ [ -context_id context_id ] [ -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 integer integer {character varying}
- Switches:
- -dbn (optional)
- -rel_id (optional, accept empty)
- -rel_type (optional, defaults to
"relationship"
)- -object_id_one (required)
- -object_id_two (required)
- -context_id (optional, accept empty)
- -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 acs_rel__new(CAST(:rel_id AS integer),:rel_type,CAST(:object_id_one AS integer),CAST(:object_id_two AS integer),CAST(:context_id AS integer),CAST(:creation_user AS integer),:creation_ip)}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle