db_map (public)
db_map snippet_name
Defined in packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl
fetch a query snippet. used to provide db-specific query snippets when porting highly dynamic queries. (OpenACS - DanW)
- Parameters:
- snippet_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- db_map
Source code: set fullname [db_qd_get_fullname $snippet_name] set fullquery [db_qd_fetch $fullname] set sql [db_fullquery_get_querytext $fullquery] # db_qd_log QDDebug "PARTIALQUERY FOR $fullname: $sql" return [uplevel 1 [list subst -nobackslashes $sql]]XQL Not present: Generic, PostgreSQL, Oracle