From 366a8908811fe51be29d6e73054f616eb4a6be60 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Tue, 16 Jun 2020 12:56:46 -0500 Subject: [PATCH] fix --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3c0eb94..49cbf09 100644 --- a/README.md +++ b/README.md @@ -26,18 +26,23 @@ employ it as you would the usual [leveldb](https://github.com/ethereum/go-ethere with a few exceptions: ```go -package example +package main import ( "github.com/ethereum/go-ethereum/trie" + "github.com/jmoiron/sqlx" "github.com/vulcanize/pg-ipfs-ethdb" ) -connectStr := "postgresql://localhost:5432/vulcanize_testing?sslmode=disable" -db, _ := sqlx.Connect("postgres", connectStr) +func main() { + connectStr := "postgresql://localhost:5432/vulcanize_testing?sslmode=disable" + db, _ := sqlx.Connect("postgres", connectStr) -kvs := ipfsethdb.NewKeyValueStore(db) -trieDB := trie.NewDatabase(db) + kvs := ipfsethdb.NewKeyValueStore(db) + trieDB := trie.NewDatabase(kvs) + + // do stuff +} ``` EXCEPTIONS: AncientReader, AncientWriter, and Iteratee interfaces are not functionally complete.