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

Unified Diff: third_party/sqlite/src/ext/fts5/tool/loadfts5.tcl

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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
« no previous file with comments | « third_party/sqlite/src/ext/fts5/tool/fts5txt2db.tcl ('k') | third_party/sqlite/src/ext/icu/icu.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/ext/fts5/tool/loadfts5.tcl
diff --git a/third_party/sqlite/src/ext/fts5/tool/loadfts5.tcl b/third_party/sqlite/src/ext/fts5/tool/loadfts5.tcl
index 4a5aa37250463ac945681128e6f6241ead863c7a..96fd69260ec2aaf86451a4a1dad8b33f30779830 100644
--- a/third_party/sqlite/src/ext/fts5/tool/loadfts5.tcl
+++ b/third_party/sqlite/src/ext/fts5/tool/loadfts5.tcl
@@ -49,6 +49,7 @@ proc usage {} {
puts stderr " -prefix PREFIX (comma separated prefix= argument)"
puts stderr " -trans N (commit after N inserts - 0 == never)"
puts stderr " -hashsize N (set the fts5 hashsize parameter to N)"
+ puts stderr " -detail MODE (detail mode for fts5 tables)"
exit 1
}
@@ -61,6 +62,7 @@ set O(crisismerge) -1
set O(prefix) ""
set O(trans) 0
set O(hashsize) -1
+set O(detail) full
if {[llength $argv]<2} usage
set nOpt [expr {[llength $argv]-2}]
@@ -113,6 +115,11 @@ for {set i 0} {$i < $nOpt} {incr i} {
set O(hashsize) [lindex $argv $i]
}
+ -detail {
+ if { [incr i]>=$nOpt } usage
+ set O(detail) [lindex $argv $i]
+ }
+
default {
usage
}
@@ -129,6 +136,9 @@ db eval "PRAGMA page_size=4096"
db eval BEGIN
set pref ""
if {$O(prefix)!=""} { set pref ", prefix='$O(prefix)'" }
+ if {$O(vtab)=="fts5"} {
+ append pref ", detail=$O(detail)"
+ }
catch {
db eval "CREATE VIRTUAL TABLE t1 USING $O(vtab) (path, content$O(tok)$pref)"
db eval "INSERT INTO t1(t1, rank) VALUES('pgsz', 4050);"
« no previous file with comments | « third_party/sqlite/src/ext/fts5/tool/fts5txt2db.tcl ('k') | third_party/sqlite/src/ext/icu/icu.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698