acs::db::nsdb-postgresql method call image new (public)

 <instance of acs::db::nsdb-postgresql[i]> call image new \
    [ -dbn dbn ] -name name  [ -parent_id parent_id ] \
    [ -item_id item_id ] [ -revision_id revision_id ] \
    [ -mime_type mime_type ] [ -creation_user creation_user ] \
    [ -creation_ip creation_ip ] [ -relation_tag relation_tag ] \
    [ -title title ] [ -description description ] [ -is_live is_live ] \
    [ -publish_date publish_date ] -path path  -file_size file_size  \
    -height height  -width width  [ -package_id package_id ]

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

Automatically generated method TYPES: {character varying} integer integer integer {character varying} integer {character varying} {character varying} {character varying} {character varying} boolean {timestamp with time zone} {character varying} integer integer integer integer

Switches:
-dbn (optional)
-name (required)
-parent_id (optional, accept empty)
-item_id (optional, accept empty)
-revision_id (optional, accept empty)
-mime_type (optional, defaults to "jpeg")
-creation_user (optional, accept empty)
-creation_ip (optional, accept empty)
-relation_tag (optional, accept empty)
-title (optional, accept empty)
-description (optional, accept empty)
-is_live (optional, defaults to "f")
-publish_date (optional, defaults to "now()")
-path (required)
-file_size (required)
-height (required)
-width (required)
-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 image__new(:name,CAST(:parent_id AS integer),CAST(:item_id AS integer),CAST(:revision_id AS integer),:mime_type,CAST(:creation_user AS integer),:creation_ip,:relation_tag,:title,:description,:is_live,:publish_date,:path,CAST(:file_size AS integer),CAST(:height AS integer),CAST(:width AS integer),CAST(:package_id AS integer))}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: