can i custom index blob data?
(1) By davecotter on 2021-07-14 15:08:30 [link] [source]
i can display blob data in a custom way, easily enough, but i want said data to be indexed / searchable / sortable according to how i would display it.
eg: if a binary blob has "file alias data" (which is basically a file path but with extra info such that the file can be found if moved), then in the display i want to show the "resolved" path, i also want to be able to sort by that and search by it.
how can i accomplish this? deterministic user-function? virtual table? relational link?
any ideas? i'm open to suggestions!
I'm not confident I understand what you're asking.
If you want to index and sort on data derived from your blobs, then unless space is in very short supply, could you not extract and manipulate this data, then store it in additional columns?
A generated column can even be virtual: https://www.sqlite.org/draft/gencol.html
Alternately, triggers can be used to keep the derivative data in sync with its mother blob.