Top 0.5% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 1.7% forks on proxy.golang.org
Top 1.0% docker downloads on proxy.golang.org
proxy.golang.org : github.com/decred/dcrd/database
Package database provides a block and metadata storage database. This package provides a database layer to store and retrieve block data and arbitrary metadata in a simple and efficient manner. The default backend, ffldb, has a strong focus on speed, efficiency, and robustness. It makes use leveldb for the metadata, flat files for block storage, and strict checksums in key areas to ensure data integrity. A quick overview of the features database provides are as follows: The main entry point is the DB interface. It exposes functionality for transactional-based access and storage of metadata and block data. It is obtained via the Create and Open functions which take a database type string that identifies the specific database driver (backend) to use as well as arguments specific to the specified driver. The Namespace interface is an abstraction that provides facilities for obtaining transactions (the Tx interface) that are the basis of all database reads and writes. Unlike some database interfaces that support reading and writing without transactions, this interface requires transactions even when only reading or writing a single key. The Begin function provides an unmanaged transaction while the View and Update functions provide a managed transaction. These are described in more detail below. The Tx interface provides facilities for rolling back or committing changes that took place while the transaction was active. It also provides the root metadata bucket under which all keys, values, and nested buckets are stored. A transaction can either be read-only or read-write and managed or unmanaged. A managed transaction is one where the caller provides a function to execute within the context of the transaction and the commit or rollback is handled automatically depending on whether or not the provided function returns an error. Attempting to manually call Rollback or Commit on the managed transaction will result in a panic. An unmanaged transaction, on the other hand, requires the caller to manually call Commit or Rollback when they are finished with it. Leaving transactions open for long periods of time can have several adverse effects, so it is recommended that managed transactions are used instead. The Bucket interface provides the ability to manipulate key/value pairs and nested buckets as well as iterate through them. The Get, Put, and Delete functions work with key/value pairs, while the Bucket, CreateBucket, CreateBucketIfNotExists, and DeleteBucket functions work with buckets. The ForEach function allows the caller to provide a function to be called with each key/value pair and nested bucket in the current bucket. As discussed above, all of the functions which are used to manipulate key/value pairs and nested buckets exist on the Bucket interface. The root metadata bucket is the upper-most bucket in which data is stored and is created at the same time as the database. Use the Metadata function on the Tx interface to retrieve it. The CreateBucket and CreateBucketIfNotExists functions on the Bucket interface provide the ability to create an arbitrary number of nested buckets. It is a good idea to avoid a lot of buckets with little data in them as it could lead to poor page utilization depending on the specific driver in use. This example demonstrates creating a new database and using a managed read-write transaction to store and retrieve metadata. This example demonstrates creating a new database, using a managed read-write transaction to store a block, and using a managed read-only transaction to fetch the block.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/decred/dcrd/database
Keywords:
blockchain
, cryptocurrency
, dcrd
, decred
, decred-daemon
, decred-nodes
, go
, golang
, p2p
, peer-to-peer
License: ISC
Latest release: about 2 years ago
First release: almost 7 years ago
Namespace: github.com/decred/dcrd
Dependent packages: 94
Dependent repositories: 34
Stars: 687 on GitHub
Forks: 281 on GitHub
Docker dependents: 1
Docker downloads: 5,649
See more repository details: repos.ecosyste.ms
Last synced: 1 day ago
decred.org/dcrd/blockchain v1.2.1
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...7 versions - Latest release: about 2 years ago - 738 stars on GitHub
github.com/decred/dcrd/blockchain v1.2.1
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...7 versions - Latest release: about 2 years ago - 132 dependent packages - 32 dependent repositories - 687 stars on GitHub
github.com/decred/dcrd/blockchain/stake v1.2.2
Package stake contains code for all of dcrd's stake transaction chain handling and other portions...7 versions - Latest release: about 2 years ago - 198 dependent packages - 34 dependent repositories - 687 stars on GitHub
github.com/rstaudt2/dcrd/blockchain v1.2.0
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...6 versions - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/davecgh/dcrd/blockchain v1.2.0
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...6 versions - Latest release: almost 6 years ago - 1 stars on GitHub
github.com/Decred-Next/dcrnd/blockchain v1.2.0
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...6 versions - Latest release: almost 6 years ago
github.com/decred-next/dcrnd/blockchain v1.2.0
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...6 versions - Latest release: almost 6 years ago
github.com/Eacred/ecrd/blockchain v1.2.0 removed
3 versions - Latest release: almost 6 years agogithub.com/John-Tonny/vclsuite_vcld/blockchain v1.2.0
Package blockchain implements bitcoin block handling and chain selection rules. The bitcoin bloc...1 version - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/john-tonny/vclsuite_vcld/blockchain v1.2.0
Package blockchain implements bitcoin block handling and chain selection rules. The bitcoin bloc...1 version - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/jrick/dcrd/blockchain v1.2.0
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...6 versions - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/John-Tonny/vclsuite_vcld/blockchain/stake v1.2.1 removed
1 version - Latest release: almost 6 years agogithub.com/Eacred/ecrd/blockchain/stake v1.2.1 removed
1 version - Latest release: almost 6 years agogithub.com/jrick/dcrd/blockchain/stake v1.2.1
Package stake contains code for all of dcrd's stake transaction chain handling and other portions...6 versions - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/decred-next/dcrnd/blockchain/stake v1.2.1
Package stake contains code for all of dcrd's stake transaction chain handling and other portions...6 versions - Latest release: almost 6 years ago
github.com/Decred-Next/dcrnd/blockchain/stake v1.2.1
Package stake contains code for all of dcrd's stake transaction chain handling and other portions...6 versions - Latest release: almost 6 years ago
github.com/john-tonny/vclsuite_vcld/blockchain/stake v1.2.1
An alternative full node bitcoin implementation written in Go (golang)1 version - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/rstaudt2/dcrd/blockchain/stake v1.2.1
Package stake contains code for all of dcrd's stake transaction chain handling and other portions...6 versions - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/joegruffins/dcrd/blockchain/stake v1.2.0
Package stake contains code for all of dcrd's stake transaction chain handling and other portions...5 versions - Latest release: almost 6 years ago - 0 stars on GitHub
github.com/decred/dcrdata/stakedb/v2 v2.0.0 removed
1 version - Latest release: about 6 years ago - 5 dependent packages - 2 dependent repositoriesgithub.com/decred/dcrdata/txhelpers/v2 v2.0.0
Package txhelpers contains helper functions for working with transactions and blocks (e.g. checki...1 version - Latest release: about 6 years ago - 26 dependent packages - 2 dependent repositories - 124 stars on GitHub
github.com/decred/dcrdata/stakedb v1.0.2
Decred block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 19 dependent packages - 124 stars on GitHub
github.com/Decred-Next/dcrndata/stakedb v1.0.2
3 versions - Latest release: about 6 years agogithub.com/EXCCoin/exccdata/stakedb v1.0.2
EXCCoin block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 3 stars on GitHub
github.com/decred-next/dcrndata/stakedb v1.0.2
3 versions - Latest release: about 6 years agogithub.com/chappjc/dcrdata/stakedb v1.0.2
Decred block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 0 stars on GitHub
github.com/exccoin/exccdata/stakedb v1.0.2
EXCCoin block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 3 stars on GitHub
github.com/dcrdata/dcrdata/stakedb v1.0.2
3 versions - Latest release: about 6 years agogithub.com/chappjc/dcrdata/txhelpers v1.1.0
Decred block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 0 stars on GitHub
github.com/exccoin/exccdata/txhelpers v1.1.0
EXCCoin block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 3 stars on GitHub
decred.org/dcrdata/txhelpers v1.1.0
Decred block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 129 stars on GitHub
github.com/dcrdata/dcrdata/txhelpers v1.1.0
3 versions - Latest release: about 6 years agogithub.com/Decred-Next/dcrndata/txhelpers v1.1.0
3 versions - Latest release: about 6 years agogithub.com/EXCCoin/exccdata/txhelpers v1.1.0
EXCCoin block explorer, with packages and apps for data collection and storage. Written in Go.3 versions - Latest release: about 6 years ago - 3 stars on GitHub
github.com/decred/dcrdata/txhelpers v1.1.0
Package txhelpers contains helper functions for working with transactions and blocks (e.g. checki...3 versions - Latest release: about 6 years ago - 78 dependent packages - 4 dependent repositories - 124 stars on GitHub
github.com/decred-next/dcrndata/txhelpers v1.1.0
3 versions - Latest release: about 6 years agogithub.com/matheusd/dcr-split-ticket-matcher v0.7.6
Decred Split Ticket Matcher Service & Client19 versions - Latest release: over 6 years ago - 28 stars on GitHub
github.com/decred/dcrdata/v3 v3.1.2
Decred block explorer, with packages and apps for data collection and storage. Written in Go.19 versions - Latest release: over 6 years ago - 124 stars on GitHub
github.com/joegruffins/dcrd/blockchain v1.1.1
Package blockchain implements Decred block handling and chain selection rules. The Decred block ...5 versions - Latest release: over 6 years ago - 0 stars on GitHub
github.com/jrick/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/picfight/dcrd v1.3.0
Decred daemon in Go (golang).38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/Eacred/ecrd v1.3.0
8 versions - Latest release: almost 7 years agogithub.com/hiroshiz/dcrd v1.3.0
1 version - Latest release: almost 7 years agogithub.com/joegruffins/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/parmax/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/jozn/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/teknico/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago
github.com/matheusd/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/rstaudt2/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/lolandhold/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago
github.com/a260312953/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/linden/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/monopolly/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/dcrnofficial/dcrnd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 1 stars on GitHub
github.com/junyang100/dcrnd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/davecgh/dcrd v1.3.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...38 versions - Latest release: almost 7 years ago - 1 stars on GitHub
github.com/itswisdomagain/dcrwallet v1.2.2
A secure Decred wallet daemon written in Go (golang).38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/ebonetti/dcrstakepooltest v1.2.2
1 version - Latest release: almost 7 years agogithub.com/jasonofua/dcrwallet v1.2.2
A secure Decred wallet daemon written in Go (golang).38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/lsgrep/dcrwallet v1.2.2
A secure Decred wallet daemon written in Go (golang).38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/martonp/dcrwallet v1.2.2
38 versions - Latest release: almost 7 years agogithub.com/jozn/dcrwallet v1.2.2
A secure Decred wallet daemon written in Go (golang).38 versions - Latest release: almost 7 years ago - 0 stars on GitHub
github.com/aerth/dcrwallet v1.2.2
38 versions - Latest release: almost 7 years agoCheck this option to include packages that no longer depend on this package in their latest version but previously did.