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

lightningnetwork / lnd / 18140636176

30 Sep 2025 07:05PM UTC coverage: 66.58%. First build
18140636176

Pull #9147

github

web-flow
Merge ca3b10b13 into 90c96c7df
Pull Request #9147: [Part 1|3] Introduce SQL Payment schema into LND

9 of 47 new or added lines in 3 files covered. (19.15%)

136724 of 205352 relevant lines covered (66.58%)

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

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

18
// getSQLMigration returns a migration function for the given version.
19
//
20
// NOTE: this is a no-op for the production build since all migrations that are
21
// in production will also be in development builds, and so they are not
22
// defined behind a build tag.
23
func (d *DefaultDatabaseBuilder) getSQLMigration(ctx context.Context,
24
        version int, kvBackend kvdb.Backend) (func(tx *sqlc.Queries) error,
25
        bool) {
×
26

×
27
        return nil, false
×
28
}
×
29

30
// getPaymentsStore returns a paymentsdb.DB backed by a paymentsdb.KVStore
31
// implementation.
32
func (d *DefaultDatabaseBuilder) getPaymentsStore(_ *sqldb.BaseDB,
33
        kvBackend kvdb.Backend,
NEW
34
        opts ...paymentsdb.OptionModifier) (paymentsdb.DB, error) {
×
NEW
35

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