nsshell::CurrentThreadHandler method eval (public)

 <instance of nsshell::CurrentThreadHandler[i]> eval arg kernel \
    channel

Defined in /usr/local/ns/tcl/nsshell/shell.tcl

Full featured "eval" method that updates the associated snapshot after the command after success.

Parameters:
arg
kernel
channel

Partial Call Graph (max 5 caller/called nodes):
%3

Testcases:
No testcase defined.
Source code:
ns_log notice "CurrentThreadHandler.eval called with <$arg> [namespace exists $kernel]"
set result [:_eval $arg $kernel $channel]

if {[dict get $result status] eq "ok"} {
    nsv_set shell_conn $kernel,snapshot [namespace eval $kernel {snapshot get_delta}]
    #ns_log notice "SNAPSHOT $kernel saved, is now: <[ns_get shell_conn $kernel,snapshot]>"
}
#
# Delete context (temporary namespace) and return result
#
namespace delete $kernel
ns_log notice "CurrentThreadHandler.eval <$arg> returns $result"
return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: