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

 <instance of acs::db::nsdb-postgresql[i]> call apm_package new \
    [ -dbn dbn ] [ -package_id package_id ] \
    [ -instance_name instance_name ] -package_key package_key  \
    [ -object_type object_type ] [ -creation_date creation_date ] \
    [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
    [ -context_id context_id ]

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

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

Switches:
-dbn (optional)
-package_id (optional, accept empty)
-instance_name (optional, accept empty)
-package_key (required)
-object_type (optional, defaults to "apm_package")
-creation_date (optional, defaults to "now()")
-creation_user (optional, accept empty)
-creation_ip (optional, accept empty)
-context_id (optional, accept empty)

Testcases:
No testcase defined.
Source code:
db_with_handle -dbn $dbn __DB {
   set s [ns_pg_bind 0or1row $__DB {select apm_package__new(CAST(:package_id AS integer),:instance_name,:package_key,:object_type,:creation_date,CAST(:creation_user AS integer),:creation_ip,CAST(:context_id AS integer))}]
   return [ns_set value $s 0]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: