nim-eth/tests/db/test_kvstore_sqlite3.nim
Jacek Sieka 205b57fe71
port kvstore from nim-beacon-chain (#230)
* port kvstore from nim-beacon-chain
* remove old database backends
* use kvstore in trie database
* add sqlite dep
* avoid template param double evaluation
* clean up heterogenous lookup todo
2020-04-27 15:16:11 +02:00

15 lines
255 B
Nim

{.used.}
import
os,
unittest,
../../eth/db/[kvstore, kvstore_sqlite3],
./test_kvstore
suite "SqStoreRef":
test "KvStore interface":
let db = SqStoreRef.init("", "test", inMemory = true)[]
defer: db.close()
testKvStore(kvStore db)