Examples
Practical code examples demonstrating DBX features.
🚀 Getting Started
Start here if you’re new to DBX:
- Quick Start - 5분 시작 가이드 (CRUD 기본)
- SQL Quick Start - SQL 기본 사용법
🔒 Security & Data Protection
Protect your data with encryption and compression:
- Encryption - AES-256-GCM-SIV and ChaCha20-Poly1305 encryption
- Compression - ZSTD compression for space savings
⚡ Performance Optimization
Maximize performance with these features:
- Indexing - Bloom Filter indexes for fast lookups
🔄 Reliability
Ensure data durability:
- WAL Recovery - Write-Ahead Log for crash recovery
📚 Example Categories
By Complexity
| Level | Examples |
|---|---|
| Beginner | Quick Start, SQL Quick Start |
| Intermediate | Indexing, Encryption |
| Advanced | Compression, WAL Recovery |
By Feature
| Feature | Examples |
|---|---|
| Storage | Quick Start, Compression |
| Query | SQL Quick Start, Indexing |
| Reliability | WAL Recovery |
| Security | Encryption |
🎯 Quick Navigation
I want to…
- Store and retrieve data → Quick Start
- Run SQL queries → SQL Quick Start
- Protect sensitive data → Encryption
- Speed up lookups → Indexing
- Reduce disk usage → Compression
- Ensure durability → WAL Recovery
💻 Running Examples
All examples are located in core/dbx-core/examples/ and can be run with:
# List all examples
cargo run --example
# Run a specific example
cargo run --example encryption
cargo run --example transactions
cargo run --example gpu_acceleration
📖 Documentation Structure
Each example includes:
- Overview: What the feature does
- Quick Start: Minimal code to get started
- Step-by-Step Guide: Detailed walkthrough
- Complete Example: Full working code
- Performance Tips: Optimization recommendations
- Next Steps: Related examples and features
🔗 Related Resources
- Architecture - Understand DBX’s 5-Tier Hybrid Storage
- Benchmarks - Performance comparisons
- API Reference - Detailed API documentation
Need help? Open an issue.