apm_package_installed_p (public)

 apm_package_installed_p package_key

Defined in packages/acs-tcl/tcl/apm-procs.tcl

Returns 1 if there is an installed package version corresponding to the package_key, 0 otherwise. Uses a cached value for performance.

Parameters:
package_key (required)

Partial Call Graph (max 5 caller/called nodes):
%3 test_files__check_info_files files__check_info_files (test acs-tcl) apm_package_installed_p apm_package_installed_p test_files__check_info_files->apm_package_installed_p acs::try_cache acs::try_cache (private) apm_package_installed_p->acs::try_cache db_0or1row db_0or1row (public) apm_package_installed_p->db_0or1row Class ::xo::Authorize Class ::xo::Authorize (public) Class ::xo::Authorize->apm_package_installed_p ad_verify_install ad_verify_install (public) ad_verify_install->apm_package_installed_p apm_data_model_scripts_find apm_data_model_scripts_find (public) apm_data_model_scripts_find->apm_package_installed_p apm_load_catalog_files apm_load_catalog_files (private) apm_load_catalog_files->apm_package_installed_p apm_scan_packages apm_scan_packages (public) apm_scan_packages->apm_package_installed_p

Testcases:
files__check_info_files
Source code:
    acs::try_cache ::acs::misc_cache eval apm_package_installed-$package_key {
        db_0or1row apm_package_installed_p {
            select 1 from apm_package_versions
            where package_key = :package_key
            and installed_p = 't'
        }
    }
Generic XQL file:
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

[ hide source ] | [ make this the default ]
Show another procedure: