docs: update distributed/backup/schema/storage for multi-database

- Add multi-database limitations to distributed docs
- Fix backup commands and add multi-database backup guidance
- Add SQL migration section to schema docs
- Update storage examples to use per-database paths
This commit is contained in:
2026-05-21 09:44:25 +03:00
parent a526a3aef9
commit 4a83eb6783
8 changed files with 150 additions and 48 deletions
+4 -1
View File
@@ -6,12 +6,15 @@ BaraDB provides multiple storage engines optimized for different access patterns
The primary storage engine with write-optimized append-only log structure.
> **Multi-Database Note**
> Each database gets its own isolated data directory (e.g. `data/databases/<name>/`). The examples below use `./data` as a placeholder — substitute with your actual database path.
### Usage
```nim
import barabadb/storage/lsm
var db = newLSMTree("./data")
var db = newLSMTree("./data/databases/default")
db.put("key1", cast[seq[byte]]("value1"))
let (found, value) = db.get("key1")
db.close()