apm_package_install_version (public)
apm_package_install_version [ -callback callback ] -array array \ [ -version_id version_id ] package_key version_name version_uri \ summary description description_format vendor vendor_uri \ auto_mount [ release_date ]
Defined in packages/acs-tcl/tcl/apm-install-procs.tcl
Installs a version of a package.
- Switches:
- -callback (optional, defaults to
"apm_dummy_callback"
)- -array (required)
- The name of the array in the callers scope holding package version attributes
- -version_id (optional)
- Parameters:
- package_key (required)
- version_name (required)
- version_uri (required)
- summary (required)
- description (required)
- description_format (required)
- vendor (required)
- vendor_uri (required)
- auto_mount (required)
- release_date (optional)
- Returns:
- The assigned version id.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- upgrade
Source code: upvar $array local_array set version_id [db_exec_plsql version_insert {}] apm::package_version::attributes::store -version_id $version_id -array local_array # Every package provides by default the service that is the package itself # This spares the developer from having to visit the dependency page apm_interface_add $version_id $package_key $version_name return $version_idGeneric XQL file: packages/acs-tcl/tcl/apm-install-procs.xql
PostgreSQL XQL file: <fullquery name="apm_package_install_version.version_insert"> <querytext> select apm_package_version__new( :version_id, :package_key, :version_name, :version_uri, :summary, :description_format, :description, :release_date, :vendor, :vendor_uri, :auto_mount, 't', 't' ); </querytext> </fullquery>packages/acs-tcl/tcl/apm-install-procs-postgresql.xql
Oracle XQL file: <fullquery name="apm_package_install_version.version_insert"> <querytext> begin :1 := apm_package_version.new( version_id => :version_id, package_key => :package_key, version_name => :version_name, version_uri => :version_uri, summary => :summary, description_format => :description_format, description => :description, release_date => :release_date, vendor => :vendor, vendor_uri => :vendor_uri, auto_mount => :auto_mount, installed_p => 't', data_model_loaded_p => 't' ); end; </querytext> </fullquery> <fullquery name="apm_package_install_version.version_insert_4.6.1"> <querytext> begin :1 := apm_package_version.new( version_id => :version_id, package_key => :package_key, version_name => :version_name, version_uri => :version_uri, summary => :summary, description_format => :description_format, description => :description, release_date => :release_date, vendor => :vendor, vendor_uri => :vendor_uri, auto_mount => :auto_mount, installed_p => 't', data_model_loaded_p => 't' ); end; </querytext> </fullquery>packages/acs-tcl/tcl/apm-install-procs-oracle.xql