https://github.com/juliaaplavin/sqlitecompress.jl
https://github.com/juliaaplavin/sqlitecompress.jl
sqlite
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/juliaaplavin/sqlitecompress.jl
- Owner: JuliaAPlavin
- License: mit
- Created: 2024-02-18T17:59:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-16T12:17:58.000Z (over 1 year ago)
- Last Synced: 2025-07-14T04:43:58.626Z (12 months ago)
- Topics: sqlite
- Language: Julia
- Homepage:
- Size: 131 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQLiteCompress.jl
SQLite functions to compress/decompress data in the database.
They are created in just a few lines of code, thanks to `SQLite.jl` UDF interface and to `TranscodingStreams.jl`.
Basic usage:
```julia
using SQLiteCompress
import SQLite
using DBInterface: execute
using CodecZstd
db = SQLite.DB(":memory:")
register_compression!(db, (ZstdCompressor, ZstdDecompressor))
execute(db, """select decompress(compress("hello"))""")
```
Performs sanity and consistency check of the compressor-decompressor pair when registering.
Tests cover both happy paths and errors, for a range of codecs and for different `SQLite.jl`-compatible packages.
See https://aplavin.github.io/SQLiteCompress.jl/examples/notebook.html for benchmarks.