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

lightningnetwork / lnd / 16930624683

13 Aug 2025 07:31AM UTC coverage: 66.908% (+10.0%) from 56.955%
16930624683

Pull #10148

github

web-flow
Merge faa71c073 into 8810793e6
Pull Request #10148: graph/db+sqldb: different defaults for SQLite and Postgres query options

11 of 80 new or added lines in 7 files covered. (13.75%)

62 existing lines in 9 files now uncovered.

135807 of 202975 relevant lines covered (66.91%)

21557.94 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,
NEW
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