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

Function proj_context_get_database_structure

src/iso19111/c_api.cpp:481–493  ·  view source on GitHub ↗

\brief Return the database structure * * Return SQL statements to run to initiate a new valid auxiliary empty * database. It contains definitions of tables, views and triggers, as well * as metadata for the version of the layout of the database. * * @param ctx PROJ context, or NULL for default context * @param options null-terminated list of options, or NULL. None currently. * @return list

Source from the content-addressed store, hash-verified

479 * @since 8.1
480 */
481PROJ_STRING_LIST
482proj_context_get_database_structure(PJ_CONTEXT *ctx,
483 const char *const *options) {
484 SANITIZE_CTX(ctx);
485 (void)options;
486 try {
487 auto ret = to_string_list(getDBcontext(ctx)->getDatabaseStructure());
488 return ret;
489 } catch (const std::exception &e) {
490 proj_log_error(ctx, __FUNCTION__, e.what());
491 return nullptr;
492 }
493}
494
495// ---------------------------------------------------------------------------
496

Callers 1

TEST_FFunction · 0.85

Calls 5

to_string_listFunction · 0.85
getDBcontextFunction · 0.85
proj_log_errorFunction · 0.85
getDatabaseStructureMethod · 0.80
whatMethod · 0.45

Tested by 1

TEST_FFunction · 0.68