mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
18 lines
619 B
Swift
18 lines
619 B
Swift
import Foundation
|
|
|
|
public protocol ValueBox {
|
|
func begin()
|
|
func commit()
|
|
|
|
func beginStats()
|
|
func endStats()
|
|
|
|
func range(table: Int32, start: ValueBoxKey, end: ValueBoxKey, @noescape values: (ValueBoxKey, ReadBuffer) -> Bool, limit: Int)
|
|
func range(table: Int32, start: ValueBoxKey, end: ValueBoxKey, keys: ValueBoxKey -> Bool, limit: Int)
|
|
func get(table: Int32, key: ValueBoxKey) -> ReadBuffer?
|
|
func exists(table: Int32, key: ValueBoxKey) -> Bool
|
|
func set(table: Int32, key: ValueBoxKey, value: MemoryBuffer)
|
|
func remove(table: Int32, key: ValueBoxKey)
|
|
func drop()
|
|
}
|