GALANTHUS / ABI FUNCTION REFERENCE
gln_get_transactions_count
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API size_t GLN_CALL gln_get_transactions_count(const gln_transactions_t* in_transactions);
Purpose
Returns the number of transaction rows materialized in a typed gln_transactions_t view.
Return
Returns the number of rows or entries materialized in the supplied typed view.
| Type | Nullability | Ownership |
|---|---|---|
size_t | value | value |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_transactions | input | const gln_transactions_t* | nullable | borrowed |
Collection Semantics
Counts only rows materialized in this gln_transactions_t view. For paged backends, another page can exist even when this count is nonzero; read gln_get_transactions_next_page_token to detect a continuation token.
Use the returned count as the exclusive upper bound for zero-based gln_get_transaction_at indexes.
Notes
Passing NULL for in_transactions is allowed and returns 0.
Use this count as the exclusive upper bound for the matching _at accessor.