MCPcopy Create free account
hub / github.com/OSGeo/PROJ / proj_context_set_sqlite3_vfs_name

Function proj_context_set_sqlite3_vfs_name

src/filemanager.cpp:1232–1237  ·  view source on GitHub ↗

Set the name of a custom SQLite3 VFS. * * This should be a valid SQLite3 VFS name, such as the one passed to the * sqlite3_vfs_register(). See https://www.sqlite.org/vfs.html * * It will be used to read proj.db or create&access the cache.db file in the * PROJ user writable directory. * * @param ctx PROJ context, or NULL * @param name SQLite3 VFS name. If NULL is passed, default implementa

Source from the content-addressed store, hash-verified

1230 * @since 7.0
1231 */
1232void proj_context_set_sqlite3_vfs_name(PJ_CONTEXT *ctx, const char *name) {
1233 if (ctx == nullptr) {
1234 ctx = pj_get_default_ctx();
1235 }
1236 ctx->custom_sqlite3_vfs_name = name ? name : std::string();
1237}
1238
1239// ---------------------------------------------------------------------------
1240

Callers 1

TEST_FFunction · 0.85

Calls 1

pj_get_default_ctxFunction · 0.85

Tested by 1

TEST_FFunction · 0.68