\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
| 479 | * @since 8.1 |
| 480 | */ |
| 481 | PROJ_STRING_LIST |
| 482 | proj_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 |