मैंने GitHub repository को serverless RDB की तरह इस्तेमाल करने वाला GitDB बनाया है
(github.com/3x-haust)मैं GitDB नाम की एक TypeScript लाइब्रेरी बना रहा हूँ.
यह GitHub repository को backend की तरह इस्तेमाल करने वाला serverless RDB-स्टाइल database है. डेटा repo के अंदर manifest, mutation log, snapshot जैसी फ़ाइलों के रूप में commit होता है, और Git history अपने आप डेटा बदलावों का इतिहास बन जाती है.
समर्थित फीचर:
- table API: insert, upsert, select, deleteWhere
- SQL-स्टाइल query: SELECT, JOIN, GROUP BY, aggregate आदि
- index-आधारित select
- transaction
- plaintext / encrypted storage
- browser export: extension, static app में इस्तेमाल किया जा सकता है
- Node/CLI सपोर्ट
लक्ष्य Postgres जैसे सामान्य DB को replace करना नहीं है, बल्कि extension/static app/agent/छोटे टूल में “DB server के बिना एक GitHub repo को data store की तरह इस्तेमाल करने” का विकल्प बनाना है.
GitHub API latency और rate limit की वजह से यह hot OLTP या realtime multi-writer के लिए उपयुक्त नहीं है. इसके बजाय, इसे low-frequency app data, demo, internal tool जैसे मामलों को ध्यान में रखकर बनाया गया है, जहाँ change history और deployment की सादगी ज्यादा महत्वपूर्ण होती है.
अभी कोई टिप्पणी नहीं है.