nsmcp::AccessRecordStoreSQLite method diskBytes (public)

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

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

Measure the disk space occupied by the record-store files. Include the database, rollback journal, WAL and shared-memory file when present. SQLite temporary files and unrelated files are excluded.

Returns:
The total size in bytes of the existing store files.

Testcases:
No testcase defined.
Source code:
set total 0
foreach suffix {{} -journal -wal -shm} {
    if {[file exists ${:path}$suffix]} {
        incr total [file size ${:path}$suffix]
    }
}
return $total
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: