Back to Fuels Rs

RocksDB

docs/src/connecting/rocksdb.md

0.77.0521 B
Original Source

RocksDB

RocksDB enables the preservation of the blockchain's state locally, facilitating its future utilization.

To create or use a local database, follow these instructions:

rust,ignore
{{#include ../../../examples/cookbook/src/lib.rs:create_or_use_rocksdb}}

Note: If the specified database does not exist, a new database will be created at that path. To utilize the code snippets above, either the fuel-core binary must be present, or both the fuel-core-lib and rocksdb features need to be enabled.