dcrd/database/ffldb
Dave Collins ad02d8f300
multi: Go 1.19 doc comment formatting.
This modifies the entire repository to use the new formatting of doc
comments in the upcoming Go 1.19 release.

The primary motivating factors for this are:

- Builds check that files are formatted per gofmt and that will no
  longer be true as of Go 1.19 without these changes
- Separating all the updates into a single commit ensures these
  documentation only formatting changes do not clutter up diffs that
  actually change code

For the most part, the changes are just the automated changes suggested
by the Go 1.19 version of gofmt, but there are also a few cases where
the comments were reworded a bit to play nicely with the new formatting
requirements.

For example, the new version of gofmt reformats and collapses nested
lists where as the existing version does not.  Thus, instances of nested
lists have been changed to either eliminate them or use mixed markers
which produce expect results.
2022-07-30 04:08:58 -05:00
..
bench_test.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00
blockio.go multi: Go 1.19 doc comment formatting. 2022-07-30 04:08:58 -05:00
db.go ffldb: Add dbErr to error description. 2022-02-08 00:43:28 -06:00
dbcache.go ffldb: Add dbErr to error description. 2022-02-08 00:43:28 -06:00
doc.go multi: Go 1.19 doc comment formatting. 2022-07-30 04:08:58 -05:00
driver_test.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00
driver.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00
export_test.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00
interface_test.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00
ldbtreapiter.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00
mockfile_test.go database: Replace with new version. 2016-08-23 17:40:38 -04:00
README.md multi: replace godoc.org with pkg.go.dev 2020-02-18 19:35:19 -06:00
reconcile.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00
whitebox_test.go multi: Introduce database/v3 module. 2021-08-02 08:29:46 -05:00

ffldb

Build Status ISC License Doc

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.