Expand description
Net document storage backed by sqlite3.
We store most objects in sqlite tables, except for very large ones, which we store as βblobβ files in a separate directory.
ModulesΒ§
- blob_
consistency π - Some notes on blob consistency, and the lack thereof.
- blob_
handle π - Functionality related to uncommitted blobs.
StructsΒ§
- Bridge
Config π - A relay not listed on the main tor network, used for anticensorship.
- Sqlite
Store π - Local directory cache using a Sqlite3 connection.
EnumsΒ§
- Absent
Blob π - Specific error returned when a blob will not be read.
ConstantsΒ§
- COUNT_
EXTDOC_ πBY_ PATH - Query: find whether an ExtDoc is listed.
- DELETE_
BRIDGEDESC π - Query: Remove a cached bridge descriptor
- DELETE_
EXTDOC_ πBY_ FILENAME - Query: Discard an extdoc with a given path.
- DROP_
OLD_ πAUTHCERTS - Query: Discard every expired authority certificate.
- DROP_
OLD_ πBRIDGEDESCS - Query: Discard every bridge descriptor that is too old, or from the future. (Both ?=now.)
- DROP_
OLD_ πCONSENSUSES - Query: Discard every consensus thatβs been expired for at least two days.
- DROP_
OLD_ πEXTDOCS - Query: Discard every expired extdoc.
- DROP_
OLD_ πMICRODESCS - Query: Discard every microdescriptor that hasnβt been listed for 3 months.
- DROP_
OLD_ πROUTERDESCS - Query: Discard every router descriptor that hasnβt been listed for 3 months.
- FIND_
ALL_ πEXTDOC_ FILENAMES - Query: List all extdoc filenames.
- FIND_
AUTHCERT π - Query: Find the authority certificate with given key digests.
- FIND_
BRIDGEDESC π - Query: Find a cached bridge descriptor
- FIND_
CONSENSUS π - Query: find the latest-expiring microdesc consensus, regardless of pending status.
- FIND_
CONSENSUS_ πAND_ META_ BY_ DIGEST_ OF_ SIGNED - Look up a consensus by its digest-of-signed-part string.
- FIND_
CONSENSUS_ πP - Query: find the latest-expiring microdesc consensus with a given pending status.
- FIND_
EXPIRED_ πEXTDOCS - Query: find every ExtDocs member that has expired.
- FIND_
LATEST_ πCONSENSUS_ META - Query: Find the valid-after time for the latest-expiring non-pending consensus of a given flavor.
- FIND_
LATEST_ πPROTOCOL_ STATUS - Query: Get the latest protocol status.
- FIND_MD π
- Query: find the microdescriptor with a given hex-encoded sha256 digest
- FIND_RD π
- Query: find the router descriptors with a given hex-encoded sha1 digest
- FIND_
UNREFERENCED_ πCONSENSUS_ EXTDOCS - Query: Find all consensus extdocs that are not referenced in the consensus table.
- INSERT_
AUTHCERT π - Query: Add a new AuthCert
- INSERT_
BRIDGEDESC π - Query: Record a cached bridge descriptor
- INSERT_
CONSENSUS π - Query: Add a new consensus.
- INSERT_
EXTDOC π - Query: Add a new entry to ExtDocs.
- INSERT_
MD π - Query: Add a new microdescriptor
- INSERT_
RD π - Query: Add a new router descriptor
- INSTALL_
V0_ πSCHEMA - Set up the tables for the arti cache schema in a sqlite database.
- MARK_
CONSENSUS_ πNON_ PENDING - Query: Update the consensus whose digest field is βdigestβ to call it no longer pending.
- REMOVE_
CONSENSUS π - Query: Remove the consensus with a given digest field.
- SCHEMA_
VERSION π - Version number used for this version of the arti cache schema.
- UPDATE_
MD_ πLISTED - Query: Change the time when a given microdescriptor was last listed.
- UPDATE_
PROTOCOL_ πSTATUS - Query: Update the latest protocol status.
- UPDATE_
SCHEMA π - Update the database schema, from each version to the next
- UPDATE_
SCHEMA_ πVERSION - Update the database schema version tracking, from each version to the next
FunctionsΒ§
- cmeta_
from_ πrow - Create a ConsensusMeta from a
Rowreturned by one ofFIND_LATEST_CONSENSUS_METAorFIND_CONSENSUS_AND_META_BY_DIGEST. - digest_
from_ πdstr - Convert a hexadecimal sha3-256 βdigest stringβ as used in the digest column from the database into an array.
- digest_
from_ πhex - Convert a hexadecimal sha3-256 digest from the database into an array.
- now_utc π
- Return
SystemTime::get()as an OffsetDateTime in UTC.