These functions allow to inspect a the value, or entry, of a given key.
- Warning
- EXPERIMENTAL FEATURE! We reserve the right to change the API without necessarily bumping the major version of the library.
◆ kvEntry_Bucket()
Returns the name of the bucket the data was loaded from, or NULL
if e
itself is NULL
.
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_Key()
Returns the name of the key that was retrieved, or NULL
if e
itself is NULL
.
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_Value()
Returns the value for this key, or NULL
if e
itself is NULL
.
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_ValueLen()
Returns the value length for this key, or -1
if e
itself is NULL
.
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_ValueString()
If the value is an actual string, this call will return a NULL terminating string (const char*
), or NULL
if e
itself is NULL
.
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_Revision()
Returns the unique sequence for this value, or 0
if e
itself is NULL
.
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_Created()
Returns the time (in UTC) the data was put in the bucket, or 0
if e
itself is NULL
.
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_Delta()
Returns the distance from the latest value, or 0
if e
itself is NULL
.
If history is enabled this is effectively the index of the historical value, 0 for latest, 1 for most recent etc...
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_Operation()
Returns the type of operation of this value.
- See also
- kvOperation
- Parameters
-
e | the pointer to the kvEntry object. |
◆ kvEntry_Destroy()
Releases memory allocated for this kvEntry object.
- Parameters
-
e | the pointer to the kvEntry object. |