mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-01 16:41:39 +01:00
sqldb: exclude sqlite from the JS and unsupported platform builds
This commit is contained in:
18
sqldb/no_sqlite.go
Normal file
18
sqldb/no_sqlite.go
Normal file
@@ -0,0 +1,18 @@
|
||||
//go:build js || (windows && (arm || 386)) || (linux && (ppc64 || mips || mipsle || mips64))
|
||||
|
||||
package sqldb
|
||||
|
||||
import "fmt"
|
||||
|
||||
// SqliteStore is a database store implementation that uses a sqlite backend.
|
||||
type SqliteStore struct {
|
||||
cfg *SqliteConfig
|
||||
|
||||
*BaseDB
|
||||
}
|
||||
|
||||
// NewSqliteStore attempts to open a new sqlite database based on the passed
|
||||
// config.
|
||||
func NewSqliteStore(cfg *SqliteConfig, dbPath string) (*SqliteStore, error) {
|
||||
return nil, fmt.Errorf("SQLite backend not supported in WebAssembly")
|
||||
}
|
||||
Reference in New Issue
Block a user