Skip to main content

Module key_identity

Module key_identity 

Source
Expand description

The physical document identity an integer primary-key value names.

Constants§

KEY_IDENTITY_LIMIT
A table whose single primary-key column is an integer names each row whose key lies in 0..KEY_IDENTITY_LIMIT by the document identity equal to the key, so a key lookup reads that one identity. Its other rows, with negative keys or keys at or above the limit, take identities the table generates at or above the limit, where no key value names one; a key lookup reaches them through the key’s index.

Functions§

is_key_document_id
Whether doc_id is an identity an integer primary-key value names.
key_document_id
The document identity an integer primary-key value names, or None for a value no identity is named by.