From d713cb1ef1e554240dfda1eeece4b647a2eab3b1 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Sun, 12 Jul 2020 23:28:05 -0500 Subject: [PATCH] minor doc fixes --- README.md | 20 +++++++++++--------- postgres/doc.md | 11 +++++------ 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index f9547c7..952c22c 100644 --- a/README.md +++ b/README.md @@ -41,21 +41,21 @@ go-ethereum trie.NodeIterator and state.NodeIterator can be constructed from the package main import ( - "context" + "context" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/trie" - "github.com/ipfs/go-blockservice" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/trie" + "github.com/ipfs/go-blockservice" "github.com/ipfs/go-ipfs/core" "github.com/ipfs/go-ipfs/repo/fsrepo" - "github.com/jmoiron/sqlx" - "github.com/vulcanize/ipfs-ethdb" + "github.com/jmoiron/sqlx" + "github.com/vulcanize/ipfs-ethdb" ) func main() { - // errors are ignored for brevity - ipfsPath := "~/.ipfs" + // errors are ignored for brevity + ipfsPath := "~/.ipfs" r, _ := fsrepo.Open(ipfsPath) ctx := context.Background() 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 @vulcanize @AFDudley diff --git a/postgres/doc.md b/postgres/doc.md index c367c7c..1e8f1b9 100644 --- a/postgres/doc.md +++ b/postgres/doc.md @@ -14,12 +14,11 @@ employ it as you would the blockservice-based ethdbs. package main import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/state/snapshot" - "github.com/ethereum/go-ethereum/trie" - "github.com/jmoiron/sqlx" - "github.com/vulcanize/ipfs-ethdb/postgres" + "github.com/ethereum/go-ethereum/common" + "github.com/ethereum/go-ethereum/core/state" + "github.com/ethereum/go-ethereum/trie" + "github.com/jmoiron/sqlx" + "github.com/vulcanize/ipfs-ethdb/postgres" ) func main() {