apm_query_files_find (private)

 apm_query_files_find package_key file_list

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

Parameters:
package_key (required)
file_list (required)
A list of files and file types of form [list [list "foo.sql" "data_model_upgrade"] ...]

Partial Call Graph (max 5 caller/called nodes):
%3 db_type db_type (public) apm_query_files_find apm_query_files_find apm_query_files_find->db_type

Testcases:
No testcase defined.
Source code:

    set query_file_list [list]

    foreach file $file_list {
        lassign $file path file_type file_db_type
        ns_log Debug "apm_query_files_find: Checking \"$path\" of type \"$file_type\" and db_type \"$file_db_type\"."

        # DRB: we return query files which match the given database type or for which no db_type
        # is defined, which we interpret to mean a file containing queries that work with all of our
        # supported databases.

        if {"query_file" eq $file_type
            && ($file_db_type eq "" || [db_type] eq $file_db_type )
        } {
            ns_log Debug "apm_query_files_find: Adding $path to the list of query files."
            lappend query_file_list $path
        }
    }
    ns_log Notice "apm_query_files_find: Query files for $package_key: $query_file_list"
    return $query_file_list
Generic XQL file:
packages/acs-tcl/tcl/apm-install-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-install-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-install-procs-oracle.xql

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