[][src]Module db::utils

Holds collections of regularly used functions that relate to database usage

Functions

gen_uid

Creates a unique 8 byte address first 4 bytes is timestamp since UNIX_EPOCH and the last 8 bytes are randomly generated values

json_to_object

Attempt converstion from JSON Value to Object T

read_json_file

Reads JSON file and convert to JSON::Value

write_json_file

Serializes and writes structure to JSON

Type Definitions

JsonDecoderResult

custom result for decoding json values

UID

unique id for each instance