xo::db::sql::download_rep proc edit (public)

 xo::db::sql::download_rep[i] edit [ -dbn dbn ] \
    -repository_id repository_id  -title title  \
    -description description  -help_text help_text  \
    -last_modified last_modified  -modifying_user modifying_user  \
    -modifying_ip modifying_ip 

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

Automatically generated method

Switches:
-dbn
(optional)
-repository_id
(required)
-title
(required)
-description
(required)
-help_text
(required)
-last_modified
(required)
-modifying_user
(required)
-modifying_ip
(required)

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

Testcases:
No testcase defined.
Source code:
#function_args: {REPOSITORY_ID {}} {TITLE {}} {DESCRIPTION {}} {HELP_TEXT {}} {LAST_MODIFIED {}} {MODIFYING_USER {}} {MODIFYING_IP {}}
foreach var [list REPOSITORY_ID TITLE DESCRIPTION HELP_TEXT LAST_MODIFIED MODIFYING_USER MODIFYING_IP]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select download_rep__edit($_REPOSITORY_ID$_TITLE$_DESCRIPTION$_HELP_TEXT$_LAST_MODIFIED$_MODIFYING_USER$_MODIFYING_IP) 
    "
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: