thomasjungblut / go-sstables

Go library for protobuf compatible sstables, a skiplist, a recordio format and other database building blocks like a write-ahead log. Ships now with an embedded key-value store.
https://blog.thomasjungblut.com/
Apache License 2.0
272 stars 12 forks source link

Use with customer io.Reader and io.Writer? #35

Open danthegoodman1 opened 3 weeks ago

danthegoodman1 commented 3 weeks ago

It seems like sstable and other packages can only be used with the local filesystem (pass in a path).

If we could pass in a custom Reader and Writer, we'd be able to use other storage (e.g. memory, object storage). Probably needs more than just the reader and writer, like a factory for looking up files by path and such, but would be a lovely extension of the package!

thomasjungblut commented 3 weeks ago

Thanks for the suggestion, Dan. I'll see if I can find some time to add a bit more generic interfaces on the creation-side of the things.