Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/sqlite/sqlite-src-3100200/ext/rbu/rbu_common.tcl

Issue 1610543003: [sql] Import reference version of SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3100200/ext/rbu/rbu_common.tcl
diff --git a/third_party/sqlite/sqlite-src-3100200/ext/rbu/rbu_common.tcl b/third_party/sqlite/sqlite-src-3100200/ext/rbu/rbu_common.tcl
new file mode 100644
index 0000000000000000000000000000000000000000..8190021baf9072236864173f5bf93faadd3beedd
--- /dev/null
+++ b/third_party/sqlite/sqlite-src-3100200/ext/rbu/rbu_common.tcl
@@ -0,0 +1,38 @@
+# 2015 Aug 8
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+#
+
+if {![info exists testdir]} {
+ set testdir [file join [file dirname [info script]] .. .. test]
+}
+source $testdir/tester.tcl
+
+# Run the RBU in file $rbu on target database $target until completion.
+#
+proc run_rbu {target rbu} {
+ sqlite3rbu rbu $target $rbu
+ while 1 {
+ set rc [rbu step]
+ if {$rc!="SQLITE_OK"} break
+ }
+ rbu close
+}
+
+proc step_rbu {target rbu} {
+ while 1 {
+ sqlite3rbu rbu $target $rbu
+ set rc [rbu step]
+ rbu close
+ if {$rc != "SQLITE_OK"} break
+ }
+ set rc
+}
+
« no previous file with comments | « third_party/sqlite/sqlite-src-3100200/ext/rbu/rbuB.test ('k') | third_party/sqlite/sqlite-src-3100200/ext/rbu/rbucrash.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698