Pharos 0.7.23
Modern Web Framework & Web App Hosting Service.
Loading...
Searching...
No Matches
native_migrate_verify.h File Reference

Declares native migration verification entry points. More...

Go to the source code of this file.

Functions

Migration verification helpers
char * native_capture_migrate_verify_sqlite_report_json (const ServeConfig *config, const AppRuntime *app, char **status_out, char **error_out)
 Captures a sqlite migration verification report for one app.

Detailed Description

Declares native migration verification entry points.

Definition in file native_migrate_verify.h.

Function Documentation

◆ native_capture_migrate_verify_sqlite_report_json()

char * native_capture_migrate_verify_sqlite_report_json ( const ServeConfig * config,
const AppRuntime * app,
char ** status_out,
char ** error_out )

Captures a sqlite migration verification report for one app.

Parameters
configActive serve configuration.
appFinalized app runtime to verify.
status_outOptional destination for an allocated verification status string.
error_outOptional destination for an allocated error message.
Returns
Newly allocated JSON report text, or NULL on failure.

Definition at line 998 of file native_migrate_verify.c.

References AppRuntime::app_id, AppRuntime::app_root, buffer_free(), buffer_init(), Buffer::data, json_string_dup_native(), native_append_json_item(), native_append_json_string_item(), native_command_exists(), native_default_sqlite_path(), native_expected_migration_checksum(), native_finish_json_array(), native_json_doc_free(), native_json_doc_load_file(), native_json_find_backend_by_name(), native_json_find_migration_by_id(), native_json_literal_dup(), native_json_nullable_string_dup(), native_json_obj_get(), native_json_obj_get_array(), native_json_obj_get_long_default(), native_json_obj_get_string_dup(), native_json_object_string_json_dup(), native_json_value_or_literal_dup(), native_legacy_expected_migration_checksum(), native_long_json_dup(), native_migrate_verify_strdup, native_migration_checksum_matches(), native_resolve_app_path(), native_seed_expectation_satisfied(), native_sqlite_migration_applied_checksum(), native_sqlite_migration_applied_count(), native_sqlite_migration_applied_schema_version(), native_sqlite_table_exists(), native_sqlite_table_row_count(), path_exists(), path_join(), streq(), ServeConfig::target_id, yyjson_arr_iter_init(), yyjson_arr_iter_next(), yyjson_doc_get_root(), yyjson_get_str(), yyjson_is_obj(), and yyjson_is_str().

Referenced by capture_migrate_verify_report_json().