no more need for errNotSupported

This commit is contained in:
Ian Norden 2020-09-14 10:18:50 -05:00
parent 961e10bfe8
commit 2c4e718a67

View File

@ -17,7 +17,6 @@
package pgipfsethdb package pgipfsethdb
import ( import (
"errors"
"fmt" "fmt"
"strings" "strings"
@ -27,8 +26,6 @@ import (
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
) )
var errNotSupported = errors.New("this operation is not supported")
const ( const (
hasPgStr = "SELECT exists(SELECT 1 FROM eth.key_preimages WHERE eth_key = $1)" hasPgStr = "SELECT exists(SELECT 1 FROM eth.key_preimages WHERE eth_key = $1)"
getPgStr = "SELECT data FROM public.blocks INNER JOIN eth.key_preimages ON (ipfs_key = blocks.key) WHERE eth_key = $1" getPgStr = "SELECT data FROM public.blocks INNER JOIN eth.key_preimages ON (ipfs_key = blocks.key) WHERE eth_key = $1"