Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransformer ¶
func NewTransformer() interfaces.Transformer
NewTransformer satisfies interfaces.TransformerConstructor for eth.uncle_cids
Types ¶
type CSVWriter ¶ added in v1.1.0
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter struct for writing v3 DB eth.uncle_cids models to a csv file
func NewWriter ¶ added in v1.1.0
func NewWriter(dst io.WriteCloser) *CSVWriter
NewWriter satisfies interfaces.WriterConstructor for eth.uncle_cids
type Transformer ¶
type Transformer struct { }
Transformer struct for transforming v2 DB eth.uncle_cids models to v3 DB models
type UncleModelV2 ¶
type UncleModelV2 struct { ID int64 `db:"id"` HeaderID int64 `db:"header_id"` BlockHash string `db:"uncle_cids.block_hash"` ParentHash string `db:"parent_hash"` CID string `db:"cid"` MhKey string `db:"mh_key"` Reward string `db:"reward"` }
UncleModelV2 is the db model for eth.uncle_cids for v2 DB
type UncleModelV2WithMeta ¶
type UncleModelV2WithMeta struct { HeaderHash string `db:"header_cids.block_hash"` UncleModelV2 }
UncleModelV2WithMeta is the db model for eth.uncle_cids for v2 DB with the additional metadata required to convert to the v3 model
Click to show internal directories.
Click to hide internal directories.