apm_version_get (public)
apm_version_get [ -version_id version_id ] \ [ -package_key package_key ] -array array
Defined in packages/acs-tcl/tcl/apm-procs.tcl
Gets information about a package version. TODO: Cache this proc, put it in a namespace and make sure it's used everywhere.
- Switches:
- -version_id (optional)
- The id of the package version to get info for
- -package_key (optional)
- Can be specified instead of version_id in which case the live version of the package will be used.
- -array (required)
- The name of the array variable to upvar the info to
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- acs_system_information_api, apm_version_api
Source code: upvar $array row if { $package_key ne "" } { set version_id [apm_version_id_from_package_key $package_key] } db_1row select_version_info {} -column_array rowGeneric XQL file: <fullquery name="apm_version_get.select_version_info"> <querytext> select v.version_id, v.package_key, v.version_name, v.version_uri, v.summary, v.description_format, v.description, to_char(v.release_date, 'YYYY-MM-DD') as release_date, v.vendor, v.vendor_uri, v.enabled_p, v.installed_p, v.tagged_p, v.imported_p, v.data_model_loaded_p, v.cvs_import_results, v.activation_date, v.deactivation_date, v.item_id, v.content_length, v.distribution_uri, v.distribution_date, v.auto_mount, t.pretty_name, t.pretty_plural from apm_package_versions v, apm_package_types t where v.version_id = :version_id and t.package_key = v.package_key </querytext> </fullquery>packages/acs-tcl/tcl/apm-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/apm-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/apm-procs-oracle.xql