mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Change the fts5 content= option so that it matches fts5 columns with the underlying table columns by name, not by their position within the CREATE TABLE statement.
FossilOrigin-Name: e38e2bb637844dae8ae5d5f3e23d8369e1b91e45
This commit is contained in:
31
ext/fts5/tool/showfts5.tcl
Normal file
31
ext/fts5/tool/showfts5.tcl
Normal file
@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
proc usage {} {
|
||||
puts stderr "usage: $::argv0 database table"
|
||||
puts stderr ""
|
||||
exit 1
|
||||
}
|
||||
|
||||
set o(vtab) fts5
|
||||
set o(tok) ""
|
||||
set o(limit) 0
|
||||
set o(automerge) -1
|
||||
set o(crisismerge) -1
|
||||
|
||||
if {[llength $argv]!=2} usage
|
||||
|
||||
set database [lindex $argv 0]
|
||||
set tbl [lindex $argv 1]
|
||||
|
||||
sqlite3 db $database
|
||||
|
||||
db eval "SELECT fts5_decode(rowid, block) AS d FROM ${tbl}_data WHERE id=10" {
|
||||
foreach lvl [lrange $d 1 end] {
|
||||
puts $lvl
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user