github.com/lbryio/lbcd@v0.22.119/database/README.md (about) 1 database 2 ======== 3 4 [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) 5 6 Package database provides a block and metadata storage database. 7 8 Please note that this package is intended to enable btcd to support different 9 database backends and is not something that a client can directly access as only 10 one entity can have the database open at a time (for most database backends), 11 and that entity will be btcd. 12 13 When a client wants programmatic access to the data provided by btcd, they'll 14 likely want to use the [rpcclient](https://github.com/lbryio/lbcd/tree/master/rpcclient) 15 package which makes use of the [JSON-RPC API](https://github.com/lbryio/lbcd/tree/master/docs/json_rpc_api.md). 16 17 However, this package could be extremely useful for any applications requiring 18 Bitcoin block storage capabilities. 19 20 The default backend, ffldb, has a strong focus on speed, efficiency, and 21 robustness. It makes use of leveldb for the metadata, flat files for block 22 storage, and strict checksums in key areas to ensure data integrity. 23 24 ## Feature Overview 25 26 - Key/value metadata store 27 - Bitcoin block storage 28 - Efficient retrieval of block headers and regions (transactions, scripts, etc) 29 - Read-only and read-write transactions with both manual and managed modes 30 - Nested buckets 31 - Iteration support including cursors with seek capability 32 - Supports registration of backend databases 33 - Comprehensive test coverage