db_driverkey (public)

 db_driverkey [ -handle_p handle_p ] dbn

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

Normally, a dbn is passed to this proc. Unfortunately, there are one or two cases where a proc that needs to call this one has only a db handle, not the dbn that handle came from. Therefore, they instead use -handle_p 1 and pass the db handle. Hmm, as of 2018, it seems that in most cases, db_driverkey is called with a handle.

Switches:
-handle_p (optional, defaults to "0")
Parameters:
dbn (required)
Returns:
The driverkey for use in db_* API switch statements.
Author:
Andrew Piskorski <atp@piskorski.com>
Created:
2003/04/08

Partial Call Graph (max 5 caller/called nodes):
%3 test_create_form_with_form_instance create_form_with_form_instance (test xowiki) db_driverkey db_driverkey test_create_form_with_form_instance->db_driverkey db_with_handle db_with_handle (public) db_driverkey->db_with_handle Class ::acs::SiteNode Class ::acs::SiteNode (public) Class ::acs::SiteNode->db_driverkey Class ::acs::SiteNodesCache Class ::acs::SiteNodesCache (public) Class ::acs::SiteNodesCache->db_driverkey acs::SiteNode instproc get_children acs::SiteNode instproc get_children (public) acs::SiteNode instproc get_children->db_driverkey acs::SiteNodesCache instproc flush_cache acs::SiteNodesCache instproc flush_cache (public) acs::SiteNodesCache instproc flush_cache->db_driverkey acs::db::require_dc acs::db::require_dc (private) acs::db::require_dc->db_driverkey

Testcases:
create_form_with_form_instance
[ show source ]
Show another procedure: