mattgodbolt / zindex

Create an index on a compressed text file
BSD 2-Clause "Simplified" License
620 stars 37 forks source link

add uri support #48

Closed sbendiola closed 1 year ago

sbendiola commented 1 year ago

Matt, we use sqlite vfs to allow compression. This patch allows passing a file uri like file:/tmp/foo/bar.zindex?zv=zlib and the vfs will know how to handle the uri params. It required SQLITE_OPEN_URI. Regular files are still supported. I also added a method to convert the uri to a file in order to unlink (kind of a hack)

mattgodbolt commented 1 year ago

Hi mate!

Oh neat!! I was only thinking about this the other week (I did a presentation at work - some cute slides at https://mattgodbolt.github.io/zindex-pres/ esp https://mattgodbolt.github.io/zindex-pres/huffman.html ) - sounds great!