xo::db::sql::apm_package_version proc copy (public)

 xo::db::sql::apm_package_version[i] copy [ -dbn dbn ] \
    -version_id version_id  [ -new_version_id new_version_id ] \
    -new_version_name new_version_name  \
    -new_version_uri new_version_uri  -copy_owners_p copy_owners_p 

Defined in packages/xotcl-core/tcl/05-db-procs.tcl

Automatically generated method

Switches:
-dbn
(optional)
-version_id
(required)
-new_version_id
(optional)
-new_version_name
(required)
-new_version_uri
(required)
-copy_owners_p
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 db_with_handle db_with_handle (public) xo::db::sql::apm_package_version proc copy xo::db::sql::apm_package_version proc copy xo::db::sql::apm_package_version proc copy->db_with_handle

Testcases:
No testcase defined.
Source code:
#function_args: {VERSION_ID {}} {NEW_VERSION_ID null} {NEW_VERSION_NAME {}} {NEW_VERSION_URI {}} {COPY_OWNERS_P {}}
foreach var [list VERSION_ID NEW_VERSION_ID NEW_VERSION_NAME NEW_VERSION_URI COPY_OWNERS_P]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select apm_package_version__copy($_VERSION_ID$_NEW_VERSION_ID$_NEW_VERSION_NAME$_NEW_VERSION_URI$_COPY_OWNERS_P) 
    "
db_with_handle -dbn $dbn db {
  #ns_log notice "--sql=$sql"
  return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: