Skip to content

Commit b59983e

Browse files
committed
bump zstd_vfs and passthrough web_insecure
1 parent 767bde6 commit b59983e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif()
1818
FetchContent_Declare(
1919
sqlite_zstd_vfs
2020
GIT_REPOSITORY https://github.com/mlin/sqlite_zstd_vfs.git
21-
GIT_TAG 3b16451
21+
GIT_TAG 048232c
2222
)
2323
FetchContent_MakeAvailable(sqlite_zstd_vfs)
2424
FetchContent_MakeAvailable(sqlitecpp)

src/genomicsqlite.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ std::string GenomicSQLiteDefaultConfigJSON() {
6868
"zstd_level": 6,
6969
"inner_page_KiB": 16,
7070
"outer_page_KiB": 32,
71-
"web_log": 2
71+
"web_log": 2,
72+
"web_insecure": false
7273
})";
7374
}
7475

@@ -171,7 +172,8 @@ string GenomicSQLiteURI(const string &dbfile, const string &config_json = "") {
171172
uri << "file:" << (web ? "/__web__" : SQLiteNested::urlencode(dbfile, true)) << "?vfs=zstd";
172173
if (web) {
173174
uri << "&mode=ro&immutable=1&web_url=" << SQLiteNested::urlencode(dbfile)
174-
<< "&web_log=" << std::to_string(cfg.GetInt("$.web_log"));
175+
<< "&web_log=" << cfg.GetInt("$.web_log")
176+
<< "&web_insecure=" << (cfg.GetBool("$.web_insecure") ? 1 : 0);
175177
}
176178
int threads = cfg.GetInt("$.threads");
177179
uri << "&outer_cache_size=-65536"

0 commit comments

Comments
 (0)