mirror of
https://github.com/muun/recovery.git
synced 2025-11-11 22:40:16 -05:00
fix vendor folder
This commit is contained in:
9
vendor/github.com/btcsuite/btcwallet/walletdb/bdb/README.md
generated
vendored
9
vendor/github.com/btcsuite/btcwallet/walletdb/bdb/README.md
generated
vendored
@@ -10,18 +10,19 @@ datastore. Package bdb is licensed under the copyfree ISC license.
|
||||
## Usage
|
||||
|
||||
This package is only a driver to the walletdb package and provides the database
|
||||
type of "bdb". The only parameter the Open and Create functions take is the
|
||||
database path as a string:
|
||||
type of "bdb". The only parameters the Open and Create functions take is the
|
||||
database path as a string, and an option for the database to not sync its
|
||||
freelist to disk as a bool:
|
||||
|
||||
```Go
|
||||
db, err := walletdb.Open("bdb", "path/to/database.db")
|
||||
db, err := walletdb.Open("bdb", "path/to/database.db", true)
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
```
|
||||
|
||||
```Go
|
||||
db, err := walletdb.Create("bdb", "path/to/database.db")
|
||||
db, err := walletdb.Create("bdb", "path/to/database.db", true)
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user