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

lightningnetwork / lnd / 16072717768

04 Jul 2025 11:27AM UTC coverage: 67.353% (+9.5%) from 57.822%
16072717768

Pull #10025

github

web-flow
Merge 9f3eac7c6 into b3eb9a3cb
Pull Request #10025: [draft] graph/db: kvdb -> SQL migration

10 of 664 new or added lines in 5 files covered. (1.51%)

89 existing lines in 8 files now uncovered.

135148 of 200655 relevant lines covered (67.35%)

21869.75 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