mirror of
https://github.com/status-im/nim-eth.git
synced 2025-01-30 16:15:44 +00:00
205b57fe71
* 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
15 lines
255 B
Nim
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)
|