apm_package_enabled_p (public)

 apm_package_enabled_p package_key

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

Returns 1 if there is an enabled package version corresponding to the package_key and 0 otherwise.

Parameters:
package_key (required)

Testcases:
No testcase defined.
Source code:
    acs::try_cache ::acs::misc_cache eval -per_request apm_package_enabled-$package_key {
        db_0or1row apm_package_enabled_p {
            select 1 from apm_package_versions
            where package_key = :package_key
            and enabled_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: