Module options

Module options 

Source
Expand description

Options for configuring the domain database

§Database Configuration Options

This module provides configuration options for the database used by delta domains. These options control aspects like storage location and persistence behavior.

The primary use case is for the RocksDB storage backend, which requires filesystem paths and other configuration settings.

§Example

use delta_domain_sdk::storage::options::DbOptions;
use std::path::PathBuf;

// Create default options (uses system temp directory)
let default_options = DbOptions::default();

// Create custom options with specific path
let custom_options = DbOptions::default()
        .with_db_prefix_path(PathBuf::from("/data/domain"));

// Append to the path
let mut options = DbOptions::default();
options.append_to_prefix_path("shard1");

Structs§

DbOptions
Configuration options for the domain database