Skip to content

Database

ratranqu edited this page Apr 26, 2021 · 2 revisions

Database

public protocol Database 

Requirements

get(key:​)

func get(key: Data) throws -> Data?

has(key:​)

func has(key: Data) throws -> Bool

set(key:​value:​)

func set(key: Data, value: Data) throws

setSync(key:​value:​)

func setSync(key: Data, value: Data) throws

delete(key:​)

func delete(key: Data) throws

deleteSync(key:​)

func deleteSync(key: Data) throws

iterator(start:​end:​)

func iterator(start: Data, end: Data) throws -> Iterator

reverseIterator(start:​end:​)

func reverseIterator(start: Data, end: Data) throws -> Iterator

close()

func close() throws

makeBatch()

func makeBatch() -> Batch

print()

func print() throws

stats()

func stats() -> [String: String]
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Extensions
Clone this wiki locally