improve interactive SQLite completions

rename index to avoid it having the same prefix as the files table
This commit is contained in:
Michael Roitzsch
2021-03-24 19:52:38 +01:00
parent b84e3ba5cf
commit 7ad7ac85f2

View File

@@ -99,7 +99,7 @@ db_files:: dyld
echo 'CREATE TABLE files (id INTEGER PRIMARY KEY, os TEXT, path TEXT, executable BOOLEAN);'
$(call find,,sudo) | sed -E "s/'/''/g;s/([^ ]*) (.*)/INSERT INTO files (os, path) VALUES('\1', '\2');/"
find $(HOME)/Library | sed "s|^$(HOME)|~|;s/'/''/g;s/.*/INSERT INTO files (os, path) VALUES('macOS', '&');/"
echo 'CREATE INDEX files_path ON files (path);'
echo 'CREATE INDEX _files_path ON files (path);'
db_binaries:: dyld
printf '\033[1mcollecting executable information...\033[m\n' >&2