SQLite-ZSTD 就是这样一个扩展,它使用 Rust 编写,并集成了 ZSTD 压缩算法。 SQLite-ZSTD 的工作原理 SQLite-ZSTD 扩展在 SQLite 数据库层面上实现了数据的压缩和解压缩。当数据被写入数据库时,扩展会自动使用 ZSTD 算法进行压缩。同样地,当数据从数据库中读取时,扩展会先解压缩数据,然后再将其返回给应用程序。 ...
intsuccess=sqlite3_load_extension(db,"libsqlite_zstd.so",NULL,NULL); Rust 推荐的方法是添加sqlite_zstd作为项目的依赖项,然后使用 letconn:rusqlite::Connection;sqlite_zstd::load(&conn)?; 或者,也可以像任何其他扩展一样加载扩展: letconn:rusqlite::Connection;conn.load_extension("libsqlite_zstd.so"...
sqlite-zstd Extension for sqlite that provides transparent dictionary-based row-level compression for sqlite. This basically allows you to compress entries in a sqlite database almost as well as if you were compressing the whole DB file, but while retaining random access. See also the announcement...
### 摘要 SQLite-zstd 作为一款专门为 SQLite 数据库管理系统打造的扩展模块,其核心功能在于实现基于字典的行级压缩。不同于传统的整体文件压缩方式,SQLite-zstd 能够在不牺牲数据随机访问能力的前提下,对数据库中的单个记录进行高效压缩,从而有效提升了数据库的存储效率与读写性能。 ### 关键词 SQLite-zstd, 数据...
I'm not sure this is the right way to do it, but I think this is necessary for conda-forge/sqlite-zstd-feedstock#2. Guidelines for marking packages as broken: We prefer to patch the repo data (se...
sqlite_zstd_suite_test.go vfs.go Important A new version of this extension written in C is now available. This C version offers the advantage of being usable across different platforms, languages, and runtimes. It is not publicly available and is provided under a one-time fee in perpetuity ...
name = "sqlite-zstd" requires-python = ">=3.9" dynamic = ["version"] [project.entry-points.datasette] sqlite_zstd = "sqlite_zstd.datasette" [tool.setuptools.package-dir] sqlite_zstd = "lib" [tool.setuptools_scm] root = ".."11
genos (phiresky/sqlite-zstd#40) Mimoja committed Jul 6, 2024 1 parent b81df77 commit 27bdbd1 Showing 1 changed file with 29 additions and 20 deletions. Whitespace Ignore whitespace Split Unified 49 changes: 29 additions & 20 deletions 49 .github/workflows/pypi_release.yml Orig...
use rusqlite::{functions::Context, params}; use std::sync::{Arc, RwLock}; use std::time::Duration; use std::{cell::RefCell, collections::HashMap}; use zstd::dict::{DecoderDictionary, EncoderDictionary}; type OwnedEncoderDict<'a> = owning_ref::OwningHandle<Vec<u8>, Box<EncoderDictiona...
Go sqlite VFS for using a zstd seekable compressed file. - History for vfs.go - gaby/sqlitezstd