apm_package_supports_rdbms_p (public)

 apm_package_supports_rdbms_p -package_key package_key

Defined in packages/acs-bootstrap-installer/tcl/30-apm-load-procs.tcl

Returns 1 if the given package supports the rdbms of the system and 0 otherwise. The package is considered to support the given rdbms if there is at least one file in the package of matching db_type, or if there are no files in the package of a certain db type.

Switches:
-package_key (required)
Author:
Peter Marklund

Testcases:
apm_package_supports_rdbms_p
Source code:
    set system_db_type [db_type]

    # LARS: This is a crude check, but there's really not any way of knowing for certain without the package telling us
    # We need to add that information back into the .info files.

    set package_path [acs_package_root_dir $package_key]
    return [expr {![ad_file exists "${package_path}/sql"] || [ad_file exists "${package_path}/sql/[db_type]"]}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: