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

Partial Call Graph (max 5 caller/called nodes):
%3 test_apm_package_supports_rdbms_p apm_package_supports_rdbms_p (test acs-bootstrap-installer) apm_package_supports_rdbms_p apm_package_supports_rdbms_p test_apm_package_supports_rdbms_p->apm_package_supports_rdbms_p acs_package_root_dir acs_package_root_dir (public) apm_package_supports_rdbms_p->acs_package_root_dir ad_file ad_file (public) apm_package_supports_rdbms_p->ad_file db_type db_type (public) apm_package_supports_rdbms_p->db_type apm_dependency_check apm_dependency_check (private) apm_dependency_check->apm_package_supports_rdbms_p apm_get_package_repository apm_get_package_repository (public) apm_get_package_repository->apm_package_supports_rdbms_p apm_package_supported_databases apm_package_supported_databases (public) apm_package_supported_databases->apm_package_supports_rdbms_p apm_simple_package_install apm_simple_package_install (public) apm_simple_package_install->apm_package_supports_rdbms_p packages/acs-admin/www/apm/packages-install.tcl packages/acs-admin/ www/apm/packages-install.tcl packages/acs-admin/www/apm/packages-install.tcl->apm_package_supports_rdbms_p

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: