mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-04-30 12:41:59 +08:00
chore(btc): type-safety forr repo
Co-authored-by: Gaze <gazenw@users.noreply.github.com>
This commit is contained in:
@@ -2,9 +2,13 @@ package postgres
|
||||
|
||||
import (
|
||||
"github.com/gaze-network/indexer-network/internal/postgres"
|
||||
"github.com/gaze-network/indexer-network/modules/bitcoin/internal/datagateway"
|
||||
"github.com/gaze-network/indexer-network/modules/bitcoin/internal/repository/postgres/gen"
|
||||
)
|
||||
|
||||
// Make sure Repository implements the BitcoinDataGateway interface
|
||||
var _ datagateway.BitcoinDataGateway = (*Repository)(nil)
|
||||
|
||||
type Repository struct {
|
||||
db postgres.DB
|
||||
queries *gen.Queries
|
||||
|
||||
Reference in New Issue
Block a user