mirror of https://github.com/etcd-io/bbolt.git
commit
b05ba12bcb
|
@ -256,7 +256,7 @@ db.View(func(tx *bolt.Tx) error {
|
||||||
```
|
```
|
||||||
|
|
||||||
The `Get()` function does not return an error because its operation is
|
The `Get()` function does not return an error because its operation is
|
||||||
guarenteed to work (unless there is some kind of system failure). If the key
|
guaranteed to work (unless there is some kind of system failure). If the key
|
||||||
exists then it will return its byte slice value. If it doesn't exist then it
|
exists then it will return its byte slice value. If it doesn't exist then it
|
||||||
will return `nil`. It's important to note that you can have a zero-length value
|
will return `nil`. It's important to note that you can have a zero-length value
|
||||||
set to a key which is different than the key not existing.
|
set to a key which is different than the key not existing.
|
||||||
|
@ -615,7 +615,7 @@ Below is a list of public, open source projects that use Bolt:
|
||||||
* [Freehold](http://tshannon.bitbucket.org/freehold/) - An open, secure, and lightweight platform for your files and data.
|
* [Freehold](http://tshannon.bitbucket.org/freehold/) - An open, secure, and lightweight platform for your files and data.
|
||||||
* [Prometheus Annotation Server](https://github.com/oliver006/prom_annotation_server) - Annotation server for PromDash & Prometheus service monitoring system.
|
* [Prometheus Annotation Server](https://github.com/oliver006/prom_annotation_server) - Annotation server for PromDash & Prometheus service monitoring system.
|
||||||
* [Consul](https://github.com/hashicorp/consul) - Consul is service discovery and configuration made easy. Distributed, highly available, and datacenter-aware.
|
* [Consul](https://github.com/hashicorp/consul) - Consul is service discovery and configuration made easy. Distributed, highly available, and datacenter-aware.
|
||||||
* [Kala](https://github.com/ajvb/kala) - Kala is a modern job scheduler optimized to run on a single node. It is persistant, JSON over HTTP API, ISO 8601 duration notation, and dependent jobs.
|
* [Kala](https://github.com/ajvb/kala) - Kala is a modern job scheduler optimized to run on a single node. It is persistent, JSON over HTTP API, ISO 8601 duration notation, and dependent jobs.
|
||||||
* [drive](https://github.com/odeke-em/drive) - drive is an unofficial Google Drive command line client for \*NIX operating systems.
|
* [drive](https://github.com/odeke-em/drive) - drive is an unofficial Google Drive command line client for \*NIX operating systems.
|
||||||
* [stow](https://github.com/djherbis/stow) - a persistence manager for objects
|
* [stow](https://github.com/djherbis/stow) - a persistence manager for objects
|
||||||
backed by boltdb.
|
backed by boltdb.
|
||||||
|
|
|
@ -622,7 +622,7 @@ func TestDB_Consistency(t *testing.T) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure that DB stats can be substracted from one another.
|
// Ensure that DB stats can be subtracted from one another.
|
||||||
func TestDBStats_Sub(t *testing.T) {
|
func TestDBStats_Sub(t *testing.T) {
|
||||||
var a, b bolt.Stats
|
var a, b bolt.Stats
|
||||||
a.TxStats.PageCount = 3
|
a.TxStats.PageCount = 3
|
||||||
|
|
Loading…
Reference in New Issue