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

lightningnetwork / lnd / 16969463412

14 Aug 2025 03:23PM UTC coverage: 66.776% (-0.2%) from 66.929%
16969463412

push

github

web-flow
Merge pull request #10155 from ziggie1984/add-missing-invoice-settle-index

Add missing invoice index for native sql

135916 of 203540 relevant lines covered (66.78%)

21469.17 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
        "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
// getGraphStore returns a graphdb.V1Store backed by a graphdb.KVStore
19
// implementation.
20
func (d *DefaultDatabaseBuilder) getGraphStore(_ *sqldb.BaseDB,
21
        kvBackend kvdb.Backend,
22
        opts ...graphdb.StoreOptionModifier) (graphdb.V1Store, error) {
×
23

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

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

×
36
        return nil, false
×
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