-
Notifications
You must be signed in to change notification settings - Fork 0
content_filesystem_api
makr-code edited this page Dec 21, 2025
·
1 revision
Stand: 5. Dezember 2025
Version: 1.0.0
Kategorie: Content
Datum: 19. Nov 2025 Status: Implementiert (Core), Server-Endpoints optional
Einfaches Binär-Content-Storage über RocksDB mit konsistenten Metadaten, optionaler SHA‑256 Integrität und Range‑Reads.
- Datenlayout:
-
content:<pk>:meta→ CBOR‑codiertes JSON{ pk, mime, size, sha256_hex } -
content:<pk>:blob→ Binärdaten
-
- Transaktionen: Einzel‑Writes (Meta dann Blob); für Multi‑Objekt‑Ingest können WriteBatch/Txn genutzt werden.
class ContentFS {
public:
ContentFS(RocksDBWrapper& db);
struct Status { bool ok; std::string message; };
Status put(const std::string& pk,
const std::vector<uint8_t>& data,
const std::string& mime,
const std::optional<std::string>& sha256_expected_hex = std::nullopt);
std::pair<Status, std::vector<uint8_t>> get(const std::string& pk) const;
std::pair<Status, std::vector<uint8_t>> getRange(const std::string& pk, uint64_t offset, uint64_t length) const;
std::pair<Status, ContentMeta> head(const std::string& pk) const;
Status remove(const std::string& pk);
static std::string sha256Hex(const std::vector<uint8_t>& data);
};RocksDBWrapper db(cfg); db.open();
ContentFS fs(db);
std::vector<uint8_t> bytes = load_file("image.png");
auto hex = ContentFS::sha256Hex(bytes);
auto st = fs.put("img_123", bytes, "image/png", hex);
auto [hst, meta] = fs.head("img_123");
auto [gst, full] = fs.get("img_123");
auto [rst, part] = fs.getRange("img_123", 0, 1024);-
tests/test_content_fs.cpp: Roundtrip, Range‑Reads, Checksum‑Mismatch, Delete → 4/4 PASS (MSVC Debug)
- Kleine bis mittlere Blobs (KB–MB) performant direkt in RocksDB/BlobDB.
- Für sehr große Objekte (>100MB) optionales Sharding/Streaming als Erweiterung (Future Work).
-
POST /content– Upload (Body), Header:Content-Type, optionalX-Checksum-SHA256. -
GET /content/{pk}– Download; unterstütztRange:. -
HEAD /content/{pk}– Metadaten. -
DELETE /content/{pk}– Löschen.
Hinweis: Endpoints sind aktuell nicht verdrahtet; Implementierung kann über themis_server Handler folgen.
ThemisDB v1.3.4 | GitHub | Documentation | Discussions | License
Last synced: January 02, 2026 | Commit: 6add659
Version: 1.3.0 | Stand: Dezember 2025
- Übersicht
- Home
- Dokumentations-Index
- Quick Reference
- Sachstandsbericht 2025
- Features
- Roadmap
- Ecosystem Overview
- Strategische Übersicht
- Geo/Relational Storage
- RocksDB Storage
- MVCC Design
- Transaktionen
- Time-Series
- Memory Tuning
- Chain of Thought Storage
- Query Engine & AQL
- AQL Syntax
- Explain & Profile
- Rekursive Pfadabfragen
- Temporale Graphen
- Zeitbereichs-Abfragen
- Semantischer Cache
- Hybrid Queries (Phase 1.5)
- AQL Hybrid Queries
- Hybrid Queries README
- Hybrid Query Benchmarks
- Subquery Quick Reference
- Subquery Implementation
- Content Pipeline
- Architektur-Details
- Ingestion
- JSON Ingestion Spec
- Enterprise Ingestion Interface
- Geo-Processor Design
- Image-Processor Design
- Hybrid Search Design
- Fulltext API
- Hybrid Fusion API
- Stemming
- Performance Tuning
- Migration Guide
- Future Work
- Pagination Benchmarks
- Enterprise README
- Scalability Features
- HTTP Client Pool
- Build Guide
- Implementation Status
- Final Report
- Integration Analysis
- Enterprise Strategy
- Verschlüsselungsstrategie
- Verschlüsselungsdeployment
- Spaltenverschlüsselung
- Encryption Next Steps
- Multi-Party Encryption
- Key Rotation Strategy
- Security Encryption Gap Analysis
- Audit Logging
- Audit & Retention
- Compliance Audit
- Compliance
- Extended Compliance Features
- Governance-Strategie
- Compliance-Integration
- Governance Usage
- Security/Compliance Review
- Threat Model
- Security Hardening Guide
- Security Audit Checklist
- Security Audit Report
- Security Implementation
- Development README
- Code Quality Pipeline
- Developers Guide
- Cost Models
- Todo Liste
- Tool Todo
- Core Feature Todo
- Priorities
- Implementation Status
- Roadmap
- Future Work
- Next Steps Analysis
- AQL LET Implementation
- Development Audit
- Sprint Summary (2025-11-17)
- WAL Archiving
- Search Gap Analysis
- Source Documentation Plan
- Changefeed README
- Changefeed CMake Patch
- Changefeed OpenAPI
- Changefeed OpenAPI Auth
- Changefeed SSE Examples
- Changefeed Test Harness
- Changefeed Tests
- Dokumentations-Inventar
- Documentation Summary
- Documentation TODO
- Documentation Gap Analysis
- Documentation Consolidation
- Documentation Final Status
- Documentation Phase 3
- Documentation Cleanup Validation
- API
- Authentication
- Cache
- CDC
- Content
- Geo
- Governance
- Index
- LLM
- Query
- Security
- Server
- Storage
- Time Series
- Transaction
- Utils
Vollständige Dokumentation: https://makr-code.github.io/ThemisDB/