acs::db::nsdb-postgresql method call acs_message new_file (public)
<instance of acs::db::nsdb-postgresql> call acs_message new_file \ [ -dbn dbn ] -message_id message_id [ -file_id file_id ] \ -file_name file_name [ -title title ] \ [ -description description ] [ -mime_type mime_type ] \ [ -data data ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -is_live is_live ] [ -storage_type storage_type ] \ [ -package_id package_id ]
Defined in packages/acs-tcl/tcl/00-acs-tcl-init.tcl
Automatically generated method TYPES: integer integer {character varying} {character varying} text {character varying} integer {timestamp with time zone} integer {character varying} boolean cr_item_storage_type_enum integer
- Switches:
- -dbn (optional)
- -message_id (required)
- -file_id (optional, accept empty)
- -file_name (required)
- -title (optional, accept empty)
- -description (optional, accept empty)
- -mime_type (optional, defaults to
"text/plain"
)- -data (optional, accept empty)
- -creation_date (optional, defaults to
"sysdate"
)- -creation_user (optional, accept empty)
- -creation_ip (optional, accept empty)
- -is_live (optional, defaults to
"t"
)- -storage_type (optional, defaults to
"file"
)- -package_id (optional, accept empty)
- Testcases:
- No testcase defined.
Source code: db_with_handle -dbn $dbn __DB { set s [ns_pg_bind 0or1row $__DB {select acs_message__new_file(CAST(:message_id AS integer),CAST(:file_id AS integer),:file_name,:title,:description,:mime_type,CAST(:data AS integer),:creation_date,CAST(:creation_user AS integer),:creation_ip,:is_live,:storage_type,CAST(:package_id AS integer))}] return [ns_set value $s 0] }XQL Not present: Generic, PostgreSQL, Oracle