dbx-core 0.0.6-beta

High-performance file-based database engine with 5-Tier Hybrid Storage
Documentation

dbx-core

Crates.io docs.rs License Guide

29x faster than SQLite • Pure Rust • MVCC Transactions • 5-Tier Hybrid Storage

dbx-core is a high-performance embedded database engine built on a 5-Tier Hybrid Storage architecture.

Installation

[dependencies]
dbx-core = "0.0.1-beta"

Quick Start

use dbx_core::Database;

fn main() -> dbx_core::error::DbxResult<()> {
    // Open an in-memory database
    let db = Database::open_in_memory()?;

    // Insert data
    db.insert("users", b"user:1", b"Alice")?;
    db.insert("users", b"user:2", b"Bob")?;

    // Get data
    if let Some(value) = db.get("users", b"user:1")? {
        println!("{}", String::from_utf8_lossy(&value));
    }

    // Delete data
    db.delete("users", b"user:2")?;

    Ok(())
}

SQL Interface

use dbx_core::Database;

fn main() -> dbx_core::error::DbxResult<()> {
    let db = Database::open_in_memory()?;

    // SQL DDL & DML
    db.execute_sql("CREATE TABLE users (id INTEGER, name TEXT, email TEXT)")?;
    db.execute_sql("INSERT INTO users VALUES (1, 'Alice', 'alice@example.com')")?;

    // Query
    let result = db.execute_sql("SELECT * FROM users WHERE id = 1")?;
    println!("{:?}", result);

    Ok(())
}

Features

  • 5-Tier Hybrid Storage: WOS → L0 → L1 → L2 → Cold Storage
  • MVCC Transactions: Snapshot isolation with optimistic concurrency
  • SQL Engine: CREATE TABLE, INSERT, SELECT, UPDATE, DELETE
  • WAL: Write-Ahead Logging for crash recovery
  • Encryption: AES-GCM-SIV and ChaCha20-Poly1305
  • Arrow/Parquet: Native columnar format support

Feature Flags

Flag Description
simd SIMD-accelerated operations
gpu GPU acceleration via CUDA
logging Enable tracing output

License

Dual-licensed under:

  • MIT License — for open-source projects
  • Commercial License — for proprietary/commercial use

See LICENSE for details.

For commercial licensing inquiries, contact: ByteLogicCore