Update README.md example to use leveldb.
SQLite is now fully deprecated and has been removed. Spotted and reported by @jolan. Closes #3.
This commit is contained in:
parent
0a86df4a16
commit
c570830104
1 changed files with 3 additions and 3 deletions
|
@ -19,14 +19,14 @@ change.
|
|||
// Import packages.
|
||||
import (
|
||||
"github.com/conformal/btcdb"
|
||||
_ "github.com/conformal/btcdb/sqlite3"
|
||||
_ "github.com/conformal/btcdb/ldb"
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwire"
|
||||
)
|
||||
|
||||
// Create a database and schedule it to be closed on exit.
|
||||
dbName := "example.db"
|
||||
db, err := btcdb.CreateDB("sqlite", dbName)
|
||||
dbName := "example"
|
||||
db, err := btcdb.CreateDB("leveldb", dbName)
|
||||
if err != nil {
|
||||
// Log and handle the error
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue