3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
|
set db ::nano::node::stats::_db
if {[llength [info command $db]] != 0} {
return
}
package require sqlite3
::close [file tempfile dbFileName]
file delete $dbFileName
sqlite3 $db $dbFileName -create true
$db eval {PRAGMA journal_mode = OFF}
file delete $dbFileName
tailcall clear
}
proc ::nano::node::stats::close {} {
set db ::nano::node::stats::_db
$db close
|
<
<
<
|
<
<
|
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
|
set db ::nano::node::stats::_db
if {[llength [info command $db]] != 0} {
return
}
package require sqlite3
sqlite3 $db ""
$db eval {PRAGMA journal_mode = OFF}
tailcall clear
}
proc ::nano::node::stats::close {} {
set db ::nano::node::stats::_db
$db close
|