GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing oxia-db.github.io — oxia.Client
class documentation
Constructor: Synchronous client for the Oxia service. Can be used as a context manager: with oxia.Client('localhost:6648') as client:
client.put('/key', b'value')
def __init__(self, service_address:
str, namespace: str = 'default', session_timeout_ms: int = 30000, client_identifier: str = None, request_timeout_ms: int = 30000):
(source)
¶
Create a new Oxia client. Connects to the service, discovers the shards of the namespace and starts the thread the client runs on. The client is thread-safe: operations submitted from several threads run concurrently and are batched together.
def delete(self, key:
str, partition_key: str = None, expected_version_id: int = None) -> bool:
(source)
¶
Delete a key and its value.
def delete_range(self, min_key_inclusive:
str, max_key_exclusive: str, partition_key: str = None):
(source)
¶
Delete all records whose keys fall within ``[min, max)``. Keys are compared using Oxia's hierarchical sort order. See: https://oxia-db.github.io/docs/features/oxia-key-sorting
def get(self, key:
str, partition_key: str = None, comparison_type: ComparisonType = ComparisonType.EQUAL, include_value: bool = True, use_index: str = None) -> tuple[:
(source)
¶
Retrieve the record for a key.
Subscribe to change notifications for the entire database. Returns an iterator that yields
def get_sequence_updates(self, prefix_key:
str, partition_key: str = None) -> SequenceUpdates:
(source)
¶
Subscribe to updates on a sequential key. Returns an iterator that yields the latest key each time the sequence advances. Call ``.close()`` on the returned object when done.
def list(self, min_key_inclusive:
str, max_key_exclusive: str, partition_key: str = None, use_index: str = None) -> list[:
(source)
¶
List keys in the range ``[min, max)``. Keys are returned in Oxia's hierarchical sort order. See: https://oxia-db.github.io/docs/features/oxia-key-sorting
def put(self, key:
str, value: str | bytes, partition_key: str = None, expected_version_id: int = None, ephemeral: bool = False, sequence_keys_deltas: list[ = None, secondary_indexes: dict[ = None) -> tuple[:
(source)
¶
Associate a value with a key.
def range_scan(self, min_key_inclusive:
str, max_key_exclusive: str, partition_key: str = None, use_index: str = None) -> Iterator[:
(source)
¶
Scan records in the range ``[min, max)``. Returns both keys and values, unlike Keys are returned in Oxia's hierarchical sort order. See: https://oxia-db.github.io/docs/features/oxia-key-sorting
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||