Crate snm_fdbcli
Source - ENV_DB_PATH
- connect_db
- Connect to FDB using env var or default cluster file.
- create_spaces
- Create or open the four core spaces under
srotas/*. - dir_create
- Generic: create or open a directory like [“srotas”], [“srotas”,“users”]
- dir_list
- List child directories under
path (or root if path is empty). - dir_open
- Generic: open existing directory;
path may be empty for root dir layer. - dump_dir
- Dump an entire directory (bounded by
limit). - open_spaces
- Open existing spaces (fails if they don’t exist).
- prefix_range_for_user
- Build a prefix range for “all keys starting with this user’s id” in a subspace.
- tuple_key_from_string
- Build a single key from a tuple string, e.g. “(user-1)”.
- tuple_pack_from_string
- Pack a tuple string into bytes without a directory (global tuple).
Currently supports “(value)” as single string.
- tuple_prefix_range
- Generic prefix range: given a directory and a tuple string like “(user-1)”,
build [begin, end) so you can scan by prefix.
- tuple_unpack_to_string
- Unpack raw bytes into a simple tuple string like “(value)”.