doc.go raw

   1  /*Package ffldb implements a driver for the database package that uses leveldb or the backing metadata and flat files for block storage.
   2  
   3  This driver is the recommended driver for use with pod. It makes use leveldb for the metadata, flat files for block
   4  storage, and checksums in key areas to ensure data integrity.
   5  
   6  Usage
   7  
   8  This package is a driver to the database package and provides the database type of "ffldb". The parameters the Open and
   9  Create functions take are the database path as a string and the block network:
  10  
  11  	db, e := database.Open("ffldb", "path/to/database", wire.MainNet)
  12  	if e != nil  {
  13  		// Handle error
  14  	}
  15  	db, e := database.Create("ffldb", "path/to/database", wire.MainNet)
  16  	if e != nil  {
  17  		// Handle error
  18  	}
  19  */
  20  package ffldb
  21