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 packages.
|
||||||
import (
|
import (
|
||||||
"github.com/conformal/btcdb"
|
"github.com/conformal/btcdb"
|
||||||
_ "github.com/conformal/btcdb/sqlite3"
|
_ "github.com/conformal/btcdb/ldb"
|
||||||
"github.com/conformal/btcutil"
|
"github.com/conformal/btcutil"
|
||||||
"github.com/conformal/btcwire"
|
"github.com/conformal/btcwire"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Create a database and schedule it to be closed on exit.
|
// Create a database and schedule it to be closed on exit.
|
||||||
dbName := "example.db"
|
dbName := "example"
|
||||||
db, err := btcdb.CreateDB("sqlite", dbName)
|
db, err := btcdb.CreateDB("leveldb", dbName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Log and handle the error
|
// Log and handle the error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue