Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with sqlite-zstd #105

Closed
franchb opened this issue Jun 21, 2024 · 3 comments
Closed

Integrate with sqlite-zstd #105

franchb opened this issue Jun 21, 2024 · 3 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@franchb
Copy link

franchb commented Jun 21, 2024

Is it possible to add sqlite-zstd extension to ncruces/go-sqlite3 WASM driver?

@ncruces ncruces added help wanted Extra attention is needed question Further information is requested labels Jun 21, 2024
@ncruces
Copy link
Owner

ncruces commented Jun 21, 2024

Maybe, but it really depends on what you mean.

Any extension you can compile and statically link into your own Wasm, is probably fair game.

I can't give specific instructions for sqlite-zstd, but you can check how sqlite3.wasm is built, and how various extensions are linked and initialized. Then it's just a matter of using your own Wasm.

If, however, want you really want is readonly compressed databases, my suggestion is that you compress your entire database with Zstandard Seekable Format, and use zstd-seekable-format-go with the reader VFS.

@franchb
Copy link
Author

franchb commented Jun 21, 2024

Thank you! I'll give zstd-seekable-format-go a shot.

@ncruces ncruces closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
@ncruces
Copy link
Owner

ncruces commented Jun 21, 2024

Please report any feedback!

@franchb franchb mentioned this issue Jul 5, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants