nsmcp::BoundedLogScanner method prepareNative (protected)

 <instance of nsmcp::BoundedLogScanner[i]> prepareNative

Defined in /usr/local/ns/tcl/nsmcp/log-01-scanner.tcl

Testcases:
No testcase defined.
Source code:
if {${:nativePrepared}} {return}
if {${:temporaryChannel} eq ""} {
    set :temporaryChannel [file tempfile :temporaryPath [file join ${:cacheDirectory} bounded-scan-]]
    fconfigure ${:temporaryChannel} -translation binary -buffering none
} else {
    ns_ftruncate ${:temporaryChannel} 0
}
seek ${:temporaryChannel} 0
puts -nonewline ${:temporaryChannel} ${:buffer}
set :nativePrepared true
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: