# Functions
DropDeltaIndexIDs removes all delta index IDs from the database.
DropFolder clears out all information related to the given folder from the database.
No description provided by the author
No description provided by the author
NewDeviceStatisticsNamespace creates a KV namespace for device statistics for the given device.
No description provided by the author
NewFolderStatisticsNamespace creates a KV namespace for folder statistics for the given folder.
NewLowlevel wraps the given *leveldb.DB into a *lowlevel.
NewMiscDateNamespace creates a KV namespace for miscellaneous metadata.
NewNamespacedKV returns a new NamespacedKV that lives in the namespace specified by the prefix.
Open attempts to open the database at the given location, and runs recovery on it if opening fails.
OpenMemory returns a new Lowlevel referencing an in-memory database.
OpenRO attempts to open the database at the given location, read only.
No description provided by the author
# Constants
KeyTypeBlock <int32 folder ID> <32 bytes hash> <§file name> = int32 (block index).
KeyTypeDevice <int32 folder ID> <int32 device ID> <file name> = FileInfo.
KeyTypeDeviceIdx <int32 id> = string value.
KeyTypeDeviceStatistic <device ID as string> <some string> = some value.
KeyTypeFolderIdx <int32 id> = string value.
KeyTypeFolderMeta <int32 folder ID> = CountsSet.
KeyTypeFolderStatistic <folder ID as string> <some string> = some value.
KeyTypeGlobal <int32 folder ID> <file name> = VersionList.
KeyTypeIndexID <int32 device ID> <int32 folder ID> = protocol.IndexID.
KeyTypeMiscData <some string> = some value.
KeyTypeNeed <int32 folder ID> <file name> = <nothing>.
KeyTypeSequence <int32 folder ID> <int64 sequence number> = KeyTypeDevice key.
KeyTypeVirtualMtime <int32 folder ID> <file name> = dbMtime.
# Variables
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
For each folder and device we keep one of these to track the current counts and sequence.
No description provided by the author
Must be the same as FileInfo but without the blocks field.
No description provided by the author
No description provided by the author
Lowlevel is the lowest level database interface.
NamespacedKV is a simple key-value store using a specific namespace within a leveldb.
No description provided by the author
# Interfaces
FileIntf is the set of methods implemented by both protocol.FileInfo and FileInfoTruncated.
# Type aliases
The Iterator is called with either a protocol.FileInfo or a FileInfoTruncated (depending on the method) and returns true to continue iteration, false to stop.