acs::db::nsdb-postgresql method call acs add_user (public)
<instance of acs::db::nsdb-postgresql> call acs add_user \ [ -dbn dbn ] [ -user_id user_id ] [ -object_type object_type ] \ [ -creation_date creation_date ] [ -creation_user creation_user ] \ [ -creation_ip creation_ip ] -authority_id authority_id \ -username username -email email [ -url url ] \ -first_names first_names -last_name last_name \ -password password -salt salt [ -screen_name screen_name ] \ [ -email_verified_p email_verified_p ] \ [ -member_state member_state ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: integer {character varying} {timestamp with time zone} integer {character varying} integer {character varying} {character varying} {character varying} {character varying} {character varying} character character {character varying} boolean {character varying}
- Switches:
- -dbn (optional)
- -user_id (optional, accept empty)
- -object_type (optional, defaults to
"user"
)- -creation_date (optional, defaults to
"now()"
)- -creation_user (optional, accept empty)
- -creation_ip (optional, accept empty)
- -authority_id (required)
- -username (required)
- -email (required)
- -url (optional, accept empty)
- -first_names (required)
- -last_name (required)
- -password (required)
- -salt (required)
- -screen_name (optional, accept empty)
- -email_verified_p (optional, defaults to
"t"
)- -member_state (optional, defaults to
"approved"
)- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select acs__add_user(CAST(:user_id AS integer),:object_type,:creation_date,CAST(:creation_user AS integer),:creation_ip,CAST(:authority_id AS integer),:username,:email,:url,:first_names,:last_name,:password,:salt,:screen_name,:email_verified_p,:member_state)}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle