MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / unique_range

Function unique_range

tests/rust/src/test_base.rs:395–397  ·  view source on GitHub ↗

Unique counter for range key values — avoids collision risk of timestamp modulo.

()

Source from the content-addressed store, hash-verified

393
394/// Unique counter for range key values — avoids collision risk of timestamp modulo.
395fn unique_range() -> i64 {
396 COUNTER.fetch_add(1, Ordering::SeqCst) as i64
397}
398
399/// Create an item with appropriate keys for the given table.
400pub fn create_item(table_name: &str) -> HashMap<String, AttributeValue> {

Callers 1

create_itemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected