Multi-model database layer for Synor blockchain: - Key-Value Store: Redis-compatible API with TTL, INCR, MGET/MSET - Document Store: MongoDB-compatible queries with filters - Vector Store: AI/RAG optimized with cosine, euclidean, dot product similarity - Time-Series Store: Metrics with downsampling and aggregations - Query Engine: Unified queries across all data models - Index Manager: B-tree, hash, unique, and compound indexes - Schema Validator: Field validation with type checking - Database Pricing: Pay-per-use model (0.1 SYNOR/GB/month) Updates roadmap with Phase 10-12 milestones: - Phase 10: Synor Database L2 - Phase 11: Economics & Billing - Phase 12: Fiat Gateway (Ramp Network integration) 41 tests passing
39 lines
821 B
TOML
39 lines
821 B
TOML
[package]
|
|
name = "synor-database"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description = "Multi-model database layer for Synor blockchain"
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
# Internal crates
|
|
synor-types = { path = "../synor-types" }
|
|
synor-crypto = { path = "../synor-crypto" }
|
|
synor-storage = { path = "../synor-storage" }
|
|
|
|
# Serialization
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
borsh.workspace = true
|
|
|
|
# Utilities
|
|
thiserror.workspace = true
|
|
parking_lot.workspace = true
|
|
tracing.workspace = true
|
|
hex.workspace = true
|
|
|
|
# Hashing
|
|
blake3.workspace = true
|
|
|
|
# Async
|
|
tokio = { workspace = true, features = ["sync", "rt-multi-thread"] }
|
|
|
|
# Data structures
|
|
lru = "0.12"
|
|
indexmap = "2.2"
|
|
|
|
# Vector operations (for AI/RAG)
|
|
# Using pure Rust for portability
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|