Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 553 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 553 Bytes

docdb

A simple document-oriented DB for study purposes

  • docdb.h provide generic db interface and a method to create an instance. It also defines Document format (id and data).
  • disk_document_db is an implementation based on simple disk engine. It use methods from VFS (virtual file system), used to store documents.

All parameters are inside "parameters.h"
By default, up to 10 records per file, keep records within file in sorted order, first record same as file name.
Each db file has a header (for each record it keeps offset, size and id).