Skip to content

PrefixDatabase

ratranqu edited this page Apr 26, 2021 · 2 revisions

PrefixDatabase

public final class PrefixDatabase: Database 

Inheritance

Database

Initializers

init(prefix:database:)

public init(prefix: Data, database: Database) 

Methods

get(key:)

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

has(key:)

public func has(key: Data) throws -> Bool 

set(key:value:)

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

setSync(key:value:)

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

delete(key:)

public func delete(key: Data) throws 

deleteSync(key:)

public func deleteSync(key: Data) throws 

iterator(start:end:)

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

reverseIterator(start:end:)

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

makeBatch()

public func makeBatch() -> Batch 

close()

public func close() throws 

print()

public func print() throws 

stats()

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