Skip to main content

Module config

Module config 

Source
Expand description

Configuration for claw-core.

ClawConfig holds all tunable parameters for a crate::engine::ClawEngine instance. Use ClawConfig::builder() to obtain a ClawConfigBuilder and construct a validated configuration with the builder pattern.

§Example

use claw_core::config::{ClawConfig, JournalMode};

let config = ClawConfig::builder()
    .max_connections(5)
    .wal_enabled(true)
    .cache_size_mb(128)
    .journal_mode(JournalMode::WAL)
    .build()
    .expect("valid configuration");

Structs§

ClawConfig
Runtime configuration for a claw-core engine instance.
ClawConfigBuilder
Builder for ClawConfig.

Enums§

JournalMode
SQLite journal mode.