Lines Matching refs:mode
97 proc checkpoint {db mode args} {
98 eval wal_checkpoint_v2 [list $db] [list $mode] $args
103 proc checkpoint {db mode args} {
104 set sql "PRAGMA wal_checkpoint = $mode"
106 set sql "PRAGMA [lindex $args 0].wal_checkpoint = $mode"
118 proc checkpoint {db mode args} {
119 if {$mode == "passive"} {
125 eval wal_checkpoint_v2 [list $db] [list $mode] $args
147 /* Leave aux4 in rollback mode */
152 # connection D in mode M. Status information is written back into
198 # database that is not in WAL mode, SQLITE_OK is returned and both
204 # checkpoint a db in rollback mode.
297 proc busy_handler {mode busy_handler_mode n} {
325 foreach {mode busy_handler_mode} {
331 set tp "$tn.$mode.$busy_handler_mode"
407 db busy [list busy_handler $mode $busy_handler_mode]
416 checkpoint db $mode main
422 if { $mode=="passive" } {
438 # in the SQLITE_CHECKPOINT_PASSIVE mode.
454 # EVIDENCE-OF: R-65499-53765 On the other hand, passive mode might leave
466 checkpoint db $mode main
477 if { $mode=="full" || $mode=="restart" || $mode=="truncate" } {
490 # EVIDENCE-OF: R-59171-47567 This mode blocks (it invokes the
528 # EVIDENCE-OF: R-51867-44713 This mode blocks new database writers
532 # EVIDENCE-OF: R-47276-58266 Like SQLITE_CHECKPOINT_FULL, this mode
536 # The first of the above two refers to "full" mode. The second
543 # EVIDENCE-OF: R-12410-31217 This mode works the same way as
549 # is met. The second part is tested below. If the checkpoint mode
555 } [expr {($mode=="restart"||$mode=="truncate")&&$busy_handler_mode==3}]
557 # EVIDENCE-OF: R-44699-57140 This mode works the same way as
560 if {$mode=="truncate" && $busy_handler_mode==3} {
601 # mode:
606 foreach {tn mode res} {
618 list [catch "wal_checkpoint_v2 db $mode" msg] $msg
730 # WAL mode.
736 # database is not in WAL mode.