Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 13-May-2020 | - | ||||
README.md | H A D | 13-May-2020 | 1.2 KiB | 42 | 31 | |
bench_test.go | H A D | 13-May-2020 | 2.2 KiB | 98 | 75 | |
blockio.go | H A D | 13-May-2020 | 27.4 KiB | 770 | 373 | |
db.go | H A D | 13-May-2020 | 68.1 KiB | 2,027 | 992 | |
dbcache.go | H A D | 13-May-2020 | 21.8 KiB | 661 | 335 | |
doc.go | H A D | 13-May-2020 | 914 | 30 | 1 | |
driver.go | H A D | 13-May-2020 | 2.1 KiB | 85 | 58 | |
driver_test.go | H A D | 13-May-2020 | 8.1 KiB | 289 | 216 | |
export_test.go | H A D | 13-May-2020 | 943 | 27 | 9 | |
interface_test.go | H A D | 13-May-2020 | 64.1 KiB | 2,301 | 1,655 | |
ldbtreapiter.go | H A D | 13-May-2020 | 2 KiB | 59 | 28 | |
mockfile_test.go | H A D | 13-May-2020 | 3.9 KiB | 164 | 102 | |
reconcile.go | H A D | 13-May-2020 | 4.4 KiB | 118 | 68 | |
whitebox_test.go | H A D | 13-May-2020 | 19 KiB | 707 | 519 |
README.md
1ffldb 2===== 3 4[![Build Status](https://travis-ci.org/btcsuite/btcd.png?branch=master)](https://travis-ci.org/btcsuite/btcd) 5[![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) 6[![GoDoc](https://godoc.org/github.com/btcsuite/btcd/database/ffldb?status.png)](http://godoc.org/github.com/btcsuite/btcd/database/ffldb) 7======= 8 9Package ffldb implements a driver for the database package that uses leveldb for 10the backing metadata and flat files for block storage. 11 12This driver is the recommended driver for use with btcd. It makes use leveldb 13for the metadata, flat files for block storage, and checksums in key areas to 14ensure data integrity. 15 16Package ffldb is licensed under the copyfree ISC license. 17 18## Usage 19 20This package is a driver to the database package and provides the database type 21of "ffldb". The parameters the Open and Create functions take are the 22database path as a string and the block network. 23 24```Go 25db, err := database.Open("ffldb", "path/to/database", wire.MainNet) 26if err != nil { 27 // Handle error 28} 29``` 30 31```Go 32db, err := database.Create("ffldb", "path/to/database", wire.MainNet) 33if err != nil { 34 // Handle error 35} 36``` 37 38## License 39 40Package ffldb is licensed under the [copyfree](http://copyfree.org) ISC 41License. 42