dcrd/database/ffldb
Dave Collins 678ff1efdd
multi: Replace btclog with slog.
This modifies all packages within the repository to the use the Decred
fork of btclog which has been renamed to slog and updates the dependency
files accordingly.
2018-05-23 14:22:10 -05:00
..
bench_test.go Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04:00
blockio.go multi: fix some maligned linter warnings 2018-02-13 14:50:33 -06:00
db.go Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04: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 Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -04:00
driver.go multi: Replace btclog with slog. 2018-05-23 14:22:10 -05:00
export_test.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
interface_test.go travis: add ineffassign linter 2017-12-01 09:14:04 -05: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 Merge remaining dcrutil code into a dcrd package. 2017-10-11 22:06:36 -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.