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

lightningnetwork / lnd / 17236841262

26 Aug 2025 11:33AM UTC coverage: 66.228% (+8.9%) from 57.321%
17236841262

Pull #9147

github

web-flow
Merge 39fde1801 into 0c2f045f5
Pull Request #9147: [Part 1|3] Introduce SQL Payment schema into LND

129 of 1847 new or added lines in 13 files covered. (6.98%)

20 existing lines in 7 files now uncovered.

136069 of 205456 relevant lines covered (66.23%)

21357.68 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
        graphdb "github.com/lightningnetwork/lnd/graph/db"
9
        "github.com/lightningnetwork/lnd/kvdb"
10
        paymentsdb "github.com/lightningnetwork/lnd/payments/db"
11
        "github.com/lightningnetwork/lnd/sqldb"
12
        "github.com/lightningnetwork/lnd/sqldb/sqlc"
13
)
14

15
// RunTestSQLMigration is a build tag that indicates whether the test_native_sql
16
// build tag is set.
17
var RunTestSQLMigration = false
18

19
// getGraphStore returns a graphdb.V1Store backed by a graphdb.KVStore
20
// implementation.
21
func (d *DefaultDatabaseBuilder) getGraphStore(_ *sqldb.BaseDB,
22
        kvBackend kvdb.Backend,
23
        opts ...graphdb.StoreOptionModifier) (graphdb.V1Store, error) {
×
24

×
25
        return graphdb.NewKVStore(kvBackend, opts...)
×
26
}
×
27

28
// getSQLMigration returns a migration function for the given version.
29
//
30
// NOTE: this is a no-op for the production build since all migrations that are
31
// in production will also be in development builds, and so they are not
32
// defined behind a build tag.
33
func (d *DefaultDatabaseBuilder) getSQLMigration(ctx context.Context,
34
        version int, kvBackend kvdb.Backend) (func(tx *sqlc.Queries) error,
35
        bool) {
×
36

×
37
        return nil, false
×
38
}
×
39

40
// getPaymentsStore returns a paymentsdb.DB backed by a paymentsdb.KVStore
41
// implementation.
42
func (d *DefaultDatabaseBuilder) getPaymentsStore(_ *sqldb.BaseDB,
43
        kvBackend kvdb.Backend,
NEW
44
        opts ...paymentsdb.StoreOptionModifier) (paymentsdb.DB, error) {
×
NEW
45

×
NEW
46
        return paymentsdb.NewKVStore(kvBackend, opts...)
×
NEW
47
}
×
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