YACDB
Yet Another C(rappy) Database
db_structs.h File Reference

Structures for interacting with the database. More...

#include <stdio.h>
Include dependency graph for db_structs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  yacdb_header
 
struct  yacdb
 
struct  btree_header
 
struct  overflow_header
 
struct  overflow_data
 
struct  ti_cell
 
struct  tl_cell_header
 
struct  tl_cell
 
struct  btree_page
 

Macros

#define YACDB_FILE_NAME   "yac.db"
 
#define YACDB_SIGNATURE   "YACDB format"
 
#define YACDB_PAGE_SIZE   512
 
#define YACDB_DEFAULT_CACHE_SIZE   10
 

Typedefs

typedef size_t Page
 A address to a page. More...
 

Enumerations

enum  page_type { NODE_TYPE_TABLE_LEAF = 13 , NODE_TYPE_TABLE_INTERIOR = 5 , NODE_TYPE_INDEX_LEAF = 10 , NODE_TYPE_INDEX_INTERIOR = 2 }
 

Detailed Description

Structures for interacting with the database.

Author
Jack Royer
Date
2022-05-29

Typedef Documentation

◆ Page

A address to a page.

This type is mainly used for auto-documentation, in order to better destinguish keys from addresses.