Skip to content
Β 
Β 

Latest commit

Β 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ QubeDB - Next Generation Multi-Model Database

License: MIT Rust Build Status Discord

QubeDB is a modern, high-performance, multi-model database built in Rust. It combines the power of relational, document, graph, vector, and time-series databases in one unified system with AI-native optimization.

✨ Features

🎯 Multi-Model Support

  • Relational: Full SQL support with ACID transactions
  • Document: JSON/BSON document storage
  • Graph: Graph database with Gremlin query support
  • Vector: AI/ML vector similarity search
  • Time-series: Optimized for IoT and analytics

⚑ High Performance

  • Rust-powered: Memory-safe and blazingly fast
  • 100K+ TPS: High transaction throughput
  • <1ms latency: Ultra-low latency operations
  • Horizontal scaling: Sharding and distributed queries

πŸ”§ Developer Friendly

  • Multiple Protocols: HTTP REST, gRPC, PostgreSQL wire protocol
  • Rich SDKs: Rust, Node.js, Python, PHP, Java, Go, C#
  • Web GUI: Modern database management interface
  • CLI Tools: Command-line database administration

🏒 Enterprise Ready

  • High Availability: Replication and automatic failover
  • Security: Encryption, authentication, and audit logging
  • Monitoring: Prometheus/Grafana integration
  • Compliance: GDPR, HIPAA, SOC2 support

πŸš€ Quick Start

Installation

# Clone the repository
git clone https://github.com/qubedb/qubedb.git
cd qubedb

# Build QubeDB
cd qubedb-core
cargo build --release

# Start the server
cargo run --bin server

Docker

# Run QubeDB with Docker
docker run -p 8080:8080 qubedb/qubedb:latest

First Steps

use qubedb_core::QubeDB;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Connect to QubeDB
    let db = QubeDB::new().await?;
    
    // Create a table
    db.execute("CREATE TABLE users (id INT, name TEXT, email TEXT)").await?;
    
    // Insert data
    db.execute("INSERT INTO users VALUES (1, 'John Doe', 'john@example.com')").await?;
    
    // Query data
    let result = db.execute("SELECT * FROM users WHERE id = 1").await?;
    println!("{:?}", result);
    
    Ok(())
}

πŸ“š Documentation

πŸ—ΊοΈ Roadmap

See our Master Roadmap for the complete development plan:

  • Phase 1: Core Engine Enhancement (Months 1-6)
  • Phase 2: SQL Layer Implementation (Months 7-14)
  • Phase 3: Network & Protocol Layer (Months 15-18)
  • Phase 4: Client Libraries (Months 19-24)
  • Phase 5: Production Features (Months 25-32)
  • Phase 6: Enterprise Features (Months 33-44)
  • Phase 7: Global Scale (Months 45-60)

πŸ› οΈ Development

Prerequisites

  • Rust 1.70+
  • Cargo
  • Git

Building from Source

# Clone the repository
git clone https://github.com/qubedb/qubedb.git
cd qubedb

# Install dependencies
cd qubedb-core
cargo build

# Run tests
cargo test

# Run benchmarks
cargo bench

Project Structure

qubedb/
β”œβ”€β”€ qubedb-core/          # Core database engine (Rust)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ storage/       # Storage engine (WAL, BTree, LSM)
β”‚   β”‚   β”œβ”€β”€ query/        # Query engine (SQL parser, optimizer)
β”‚   β”‚   β”œβ”€β”€ drivers/      # Language drivers
β”‚   β”‚   └── lib.rs
β”‚   └── Cargo.toml
β”œβ”€β”€ qubedb-gui/           # Web-based GUI
β”œβ”€β”€ docs/                 # Documentation
β”œβ”€β”€ examples/             # Example applications
└── tests/               # Integration tests

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

How to Contribute

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Setup

# Fork and clone the repository
git clone https://github.com/your-username/qubedb.git
cd qubedb

# Create a new branch
git checkout -b feature/your-feature-name

# Make your changes
# ... code changes ...

# Run tests
cargo test

# Commit and push
git add .
git commit -m "Add your feature"
git push origin feature/your-feature-name

πŸ“Š Benchmarks

Performance Metrics

Metric QubeDB PostgreSQL MySQL
TPS 100K+ 50K 30K
Latency <1ms 2ms 3ms
Memory Usage 100MB 200MB 150MB
Storage Efficiency 95% 80% 75%

Benchmark Results

# Run benchmarks
cargo bench

# Results
test insert_benchmark     ... bench:   1,234,567 ns/iter (+/- 123,456)
test select_benchmark     ... bench:     123,456 ns/iter (+/- 12,345)
test update_benchmark     ... bench:     234,567 ns/iter (+/- 23,456)
test delete_benchmark     ... bench:     345,678 ns/iter (+/- 34,567)

🌟 Use Cases

Web Applications

  • E-commerce platforms
  • Content management systems
  • User authentication systems
  • Real-time analytics

IoT & Time-Series

  • Sensor data collection
  • Device monitoring
  • Predictive maintenance
  • Energy management

AI/ML Applications

  • Vector similarity search
  • Recommendation systems
  • Natural language processing
  • Computer vision

Enterprise Applications

  • Customer relationship management
  • Enterprise resource planning
  • Business intelligence
  • Data warehousing

🏒 Enterprise

QubeDB Enterprise

  • Advanced security features
  • High availability clustering
  • Enterprise support
  • Custom deployment options

QubeDB Cloud

  • Fully managed database service
  • Automatic scaling
  • Global distribution
  • 99.99% uptime SLA

Contact Sales

πŸ“ˆ Community

Join Our Community

Contributors

Thank you to all our contributors! See CONTRIBUTORS.md for the full list.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Rust Community - For the amazing language and ecosystem
  • PostgreSQL - For SQL standard inspiration
  • RocksDB - For LSM-tree implementation ideas
  • SQLite - For embedded database concepts
  • All Contributors - For making QubeDB possible

πŸ“ž Support


QubeDB - Building the future of databases, one commit at a time! πŸš€

Made with ❀️ by the QubeDB Team

About

Next Generation Multi-Model Database built with Rust

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages