fix
This commit is contained in:
parent
43b19a7b5b
commit
366a890881
@ -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"
|
||||
)
|
||||
|
||||
func main() {
|
||||
connectStr := "postgresql://localhost:5432/vulcanize_testing?sslmode=disable"
|
||||
db, _ := sqlx.Connect("postgres", connectStr)
|
||||
|
||||
kvs := ipfsethdb.NewKeyValueStore(db)
|
||||
trieDB := trie.NewDatabase(db)
|
||||
trieDB := trie.NewDatabase(kvs)
|
||||
|
||||
// do stuff
|
||||
}
|
||||
```
|
||||
|
||||
EXCEPTIONS: AncientReader, AncientWriter, and Iteratee interfaces are not functionally complete.
|
||||
|
Loading…
Reference in New Issue
Block a user