• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 16023352958

02 Jul 2025 11:02AM UTC coverage: 57.603% (-0.2%) from 57.803%
16023352958

Pull #10025

github

web-flow
Merge d7fd9e180 into 1d2e5472b
Pull Request #10025: [draft] graph/db: kvdb -> SQL migration

15 of 608 new or added lines in 8 files covered. (2.47%)

71 existing lines in 13 files now uncovered.

98475 of 170954 relevant lines covered (57.6%)

1.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/config_prod.go
1
//go:build !test_native_sql
2

3
package lnd
4

5
import (
6
        "context"
7

8
        "github.com/btcsuite/btcd/chaincfg/chainhash"
9
        graphdb "github.com/lightningnetwork/lnd/graph/db"
10
        "github.com/lightningnetwork/lnd/kvdb"
11
        "github.com/lightningnetwork/lnd/sqldb"
12
        "github.com/lightningnetwork/lnd/sqldb/sqlc"
13
)
14

15
// getGraphStore returns a graphdb.V1Store backed by a graphdb.KVStore
16
// implementation.
17
func (d *DefaultDatabaseBuilder) getGraphStore(_ *sqldb.BaseDB,
18
        kvBackend kvdb.Backend,
19
        opts ...graphdb.StoreOptionModifier) (graphdb.V1Store, error) {
×
20

×
21
        return graphdb.NewKVStore(kvBackend, opts...)
×
22
}
×
23

24
func getSQLMigration(ctx context.Context, version int,
25
        kvBackend kvdb.Backend,
NEW
26
        chain chainhash.Hash) (func(tx *sqlc.Queries) error, bool) {
×
NEW
27

×
NEW
28
        return nil, false
×
NEW
29
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc