mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-04-21 10:33:10 +00:00
16 lines
504 B
Nim
16 lines
504 B
Nim
import pkg/questionable/results
|
|
import pkg/upraises
|
|
|
|
import threads/databuffer
|
|
|
|
push: {.upraises: [].}
|
|
|
|
type
|
|
Datastore2* = object of RootObj
|
|
has*: proc(self: Datastore2, key: KeyBuffer): ?!bool {.nimcall.}
|
|
delete*: proc(self: Datastore2, key: KeyBuffer): ?!void {.nimcall.}
|
|
get*: proc(self: Datastore2, key: KeyBuffer): ?!ValueBuffer {.nimcall.}
|
|
put*: proc(self: Datastore2, key: KeyBuffer, data: ValueBuffer): ?!void {.nimcall.}
|
|
close*: proc(self: Datastore2): ?!void {.nimcall.}
|
|
|