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
| 1230 | * @since 7.0 |
| 1231 | */ |
| 1232 | void 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 |