nsmcp::UnifiedAccessSession method scalar (public)

 <instance of nsmcp::UnifiedAccessSession[i]> scalar sql

Defined in /usr/local/ns/tcl/nsmcp/log-traffic-unified.tcl

Read one scalar through the unified record-store session. Forward the query in the caller's scope without obtaining another database handle.

Parameters:
sql (required)
Trusted SQL text; current values are resolved in the caller's scope.
Returns:
The first query value, or an empty result for no row.

Testcases:
No testcase defined.
Source code:
set db [${:adapter} session]
return [uplevel 1 [list $db scalar $sql]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: