db_nth_pool_name (public)

 db_nth_pool_name [ -dbn dbn ] n

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

Switches:
-dbn
(optional)
The database name to use. If empty_string, uses the default database.
Parameters:
n
Returns:
the name of the pool used for the nth-nested selection (0-relative).

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

Testcases:
No testcase defined.
Source code:
    set available_pools [db_available_pools $dbn]

    if { $n < [llength $available_pools] } {
        set pool [lindex $available_pools $n]
    } else {
        return -code error "Ran out of database pools ($available_pools)"
    }
    return $pool
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: