Skip to main content

Module protocol_utils

Module protocol_utils 

Source
Expand description

Protocol utilities for storage identifier parsing

TegDB now targets native platforms exclusively, so only the file:// protocol is supported when opening databases.

Constants§

PROTOCOL_FILE
File-based storage protocol prefix
PROTOCOL_NAME_FILE
Canonical protocol name

Functions§

extract_path
Extract the path part from a storage identifier
has_protocol
Check if an identifier uses the file:// protocol explicitly
parse_storage_identifier
Parse a storage identifier to extract the protocol and path