Skip to content

Declared in <galanthus/c_api/gln_capi.h>.

GLN_API const char* GLN_CALL gln_get_transaction_source_format(const gln_transaction_t* in_transaction);
  • Family: Row field accessors
  • Return type: const char*

Purpose

Returns the source format used to parse the transaction row.

Return

Returns the source format from the transaction row, or NULL when it is not available.

TypeNullabilityOwnership
const char*nullableborrowed

Parameters

NameDirectionTypeNullabilityOwnership
in_transactioninputconst gln_transaction_t*nullableborrowed

Transaction Semantics

Use source_format as a provenance marker for the parser or plugin path that produced the row. Treat it as an open string.

Owned producers emit values such as MT940, CAMT052, CAMT053, CAMT054, fints41_xml, revolut_json, and wise_statement. Plugin-provided transaction rows can carry other marker strings.

Notes

Passing NULL for in_transaction is allowed and returns NULL.

Rows returned by the matching _at accessor carry this field as part of the materialized typed result.

The returned pointer is borrowed from the owning backend result envelope and becomes invalid when that envelope is destroyed.

See Also