repository_log_to_db (public)

 repository_log_to_db

Defined in packages/acs-admin/tcl/apm-admin-init.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-admin/tcl/apm-admin-init.tcl packages/acs-admin/ tcl/apm-admin-init.tcl repository_log_to_db repository_log_to_db packages/acs-admin/tcl/apm-admin-init.tcl->repository_log_to_db repository-download repository-download (public) repository-download->repository_log_to_db ad_conn ad_conn (public) repository_log_to_db->ad_conn

Testcases:
No testcase defined.
Source code:
      set ip [ns_conn peeraddr]
      set user_id [ad_conn user_id]
      set url [ns_conn url]
      if {[regexp {^/repository/([^/]+)/(.*)-([^-]+).apm$} [ns_conn url] _ channel package version]} {
          ::xo::dc dml record_package_download  "insert into apm_package_downloads(time, ip, user_id, channel, package, version, url)  values (now(), :ip, :user_id, :channel, :package, :version, :url)"
      }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: