forked from cerc-io/ipfs-ethdb
minor doc fixes
This commit is contained in:
parent
535d8eca71
commit
d713cb1ef1
20
README.md
20
README.md
@ -41,21 +41,21 @@ go-ethereum trie.NodeIterator and state.NodeIterator can be constructed from the
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/state"
|
"github.com/ethereum/go-ethereum/core/state"
|
||||||
"github.com/ethereum/go-ethereum/trie"
|
"github.com/ethereum/go-ethereum/trie"
|
||||||
"github.com/ipfs/go-blockservice"
|
"github.com/ipfs/go-blockservice"
|
||||||
"github.com/ipfs/go-ipfs/core"
|
"github.com/ipfs/go-ipfs/core"
|
||||||
"github.com/ipfs/go-ipfs/repo/fsrepo"
|
"github.com/ipfs/go-ipfs/repo/fsrepo"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/jmoiron/sqlx"
|
||||||
"github.com/vulcanize/ipfs-ethdb"
|
"github.com/vulcanize/ipfs-ethdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// errors are ignored for brevity
|
// errors are ignored for brevity
|
||||||
ipfsPath := "~/.ipfs"
|
ipfsPath := "~/.ipfs"
|
||||||
r, _ := fsrepo.Open(ipfsPath)
|
r, _ := fsrepo.Open(ipfsPath)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
cfg := &core.BuildCfg{
|
cfg := &core.BuildCfg{
|
||||||
@ -77,6 +77,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[Types are also available](./postgres/doc.md) for interfacing directly with the data stored in an IPFS-backing Postgres database
|
||||||
|
|
||||||
## Maintainers
|
## Maintainers
|
||||||
@vulcanize
|
@vulcanize
|
||||||
@AFDudley
|
@AFDudley
|
||||||
|
@ -14,12 +14,11 @@ employ it as you would the blockservice-based ethdbs.
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/state"
|
"github.com/ethereum/go-ethereum/core/state"
|
||||||
"github.com/ethereum/go-ethereum/core/state/snapshot"
|
"github.com/ethereum/go-ethereum/trie"
|
||||||
"github.com/ethereum/go-ethereum/trie"
|
"github.com/jmoiron/sqlx"
|
||||||
"github.com/jmoiron/sqlx"
|
"github.com/vulcanize/ipfs-ethdb/postgres"
|
||||||
"github.com/vulcanize/ipfs-ethdb/postgres"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user