diff --git a/lib/db/keyer.go b/lib/db/keyer.go index b8f9b523..e40377e3 100644 --- a/lib/db/keyer.go +++ b/lib/db/keyer.go @@ -21,19 +21,44 @@ const ( ) const ( - KeyTypeDevice = 0 - KeyTypeGlobal = 1 - KeyTypeBlock = 2 + // KeyTypeDevice = FileInfo + KeyTypeDevice = 0 + + // KeyTypeGlobal = VersionList + KeyTypeGlobal = 1 + + // KeyTypeBlock <32 bytes hash> <§file name> = int32 (block index) + KeyTypeBlock = 2 + + // KeyTypeDeviceStatistic = some value KeyTypeDeviceStatistic = 3 + + // KeyTypeFolderStatistic = some value KeyTypeFolderStatistic = 4 - KeyTypeVirtualMtime = 5 - KeyTypeFolderIdx = 6 - KeyTypeDeviceIdx = 7 - KeyTypeIndexID = 8 - KeyTypeFolderMeta = 9 - KeyTypeMiscData = 10 - KeyTypeSequence = 11 - KeyTypeNeed = 12 + + // KeyTypeVirtualMtime = dbMtime + KeyTypeVirtualMtime = 5 + + // KeyTypeFolderIdx = string value + KeyTypeFolderIdx = 6 + + // KeyTypeDeviceIdx = string value + KeyTypeDeviceIdx = 7 + + // KeyTypeIndexID = protocol.IndexID + KeyTypeIndexID = 8 + + // KeyTypeFolderMeta = CountsSet + KeyTypeFolderMeta = 9 + + // KeyTypeMiscData = some value + KeyTypeMiscData = 10 + + // KeyTypeSequence = KeyTypeDevice key + KeyTypeSequence = 11 + + // KeyTypeNeed = + KeyTypeNeed = 12 ) type keyer interface {