Sha256: ad6431ddebe4e868fdb1833ac8166335167a98272edaf9251fd781cf5f4e8fbe
Contents?: true
Size: 796 Bytes
Versions: 4
Compression:
Stored size: 796 Bytes
Contents
= Storage There is support for different storage backends, currently the `sequel` backend is the most stable and should work with `sqlite` and `postgres` databases. see Bitcoin::Storage == Backends For examples that require storage backends, you can specify them using a string containing the backend name and a configuration string. The default backend is +sequel::sqlite://bitcoin.db+ which is a sqlite database called +bitcoin.db+ in the current directory sequel::sqlite:/ # in-memory sequel::sqlite://bitcoin.db sequel::sqlite:///tmp/bitcoin.db sequel::postgres:/bitcoin sequel::postgres://<user>:<pass>@<host>:<port>/<database> == Custom Backends To implement a custom backend you need to inherit from Bitcoin::Storage::Backends::StoreBase and implement the methods defined there.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bitcoin-ruby-0.0.4 | doc/STORAGE.rdoc |
bitcoin-ruby-0.0.3 | doc/STORAGE.rdoc |
bitcoin-ruby-0.0.2 | doc/STORAGE.rdoc |
bitcoin-ruby-0.0.1 | doc/STORAGE.rdoc |