dcrd/database/ffldb
Jean-Christophe Mincke 5115a422f0 multi: Error descriptions are in lower case.
Functions fmt.Error(), errors.New() are inspected.

Files under the dcrd/vendor directory are ignored.
2017-09-08 18:03:59 +02:00
..
bench_test.go travis: enable gometalinter (#603) 2017-03-08 15:44:15 -05:00
blockio.go all: Remove seelog logger. 2017-06-20 10:58:10 -04:00
db.go multi: Upstream chainhash abstraction sync 2016-11-16 12:48:40 -06:00
dbcache.go remove deadcode 2017-07-17 15:06:47 -05:00
doc.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
driver_test.go multi: Error descriptions are in lower case. 2017-09-08 18:03:59 +02:00
driver.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
export_test.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
interface_test.go multi: Error descriptions are in lower case. 2017-09-08 18:03:59 +02:00
ldbtreapiter.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
mockfile_test.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
README.md multi: Update markdown in README files to match change in github parser. 2017-05-26 12:06:19 -04:00
reconcile.go all: Remove seelog logger. 2017-06-20 10:58:10 -04:00
whitebox_test.go adjust for dcrutil Block changes. (#700) 2017-05-18 16:42:56 -04:00

ffldb

Build Status ISC License GoDoc

Package ffldb implements a driver for the database package that uses leveldb for the backing metadata and flat files for block storage.

This driver is the recommended driver for use with dcrd. It makes use leveldb for the metadata, flat files for block storage, and checksums in key areas to ensure data integrity.

Package ffldb is licensed under the copyfree ISC license.

Usage

This package is a driver to the database package and provides the database type of "ffldb". The parameters the Open and Create functions take are the database path as a string and the block network.

db, err := database.Open("ffldb", "path/to/database", wire.MainNet)
if err != nil {
	// Handle error
}
db, err := database.Create("ffldb", "path/to/database", wire.MainNet)
if err != nil {
	// Handle error
}

License

Package ffldb is licensed under the copyfree ISC License.