Update README.md example to use leveldb.

SQLite is now fully deprecated and has been removed.  Spotted and reported
by @jolan.

Closes .
This commit is contained in:
Dave Collins 2014-03-17 12:58:22 -05:00
parent 0a86df4a16
commit c570830104

View file

@ -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
} }