nsmcp::AccessRecordStoreSQLite method descriptors (public)

 <instance of nsmcp::AccessRecordStoreSQLite[i]> descriptors

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

Describe the active generations present in the record store. Derive live and rotated-source descriptors from persisted state without discovering or opening source files.

Returns:
A list of active stored-source descriptors and their committed byte boundaries.

Testcases:
No testcase defined.
Source code:
set result {}
set i 0
set control [:stateGet continuous {}]
foreach row [${:db} execute  {SELECT fid,identity,high FROM nsmcp_records.files WHERE active=1 ORDER BY fid}] {
    set fid [dict get $row fid]
    set live [expr {[dict exists $control live $fid]}]
    lappend result [dict create  archiveFid $fid  identity [dict get $row identity]  fileIndex $i  source 0  rotation [expr {!$live}]  compressed false  size [dict get $row high]  offset [dict get $row high]  status complete]
    incr i
}
return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: