current_snap_tag()

current_snap_tag()#

Retrieves the current snapshot tag of the specified treedb_name in the given tranger instance.

Prototype

int current_snap_tag(
    json_t  *tranger,
    const char  *treedb_name
);

Parameters

Key

Type

Description

tranger

json_t *

Pointer to the tranger instance managing the tree database.

treedb_name

const char *

Name of the tree database whose current snapshot tag is to be retrieved.


Return Value

Returns the current snapshot tag as an integer.

Notes

The snapshot tag is used to track versions of the tree database.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples