tinySQL  0.1
A self-contained database management system
config.h
1 #ifndef __CONFIG_H__
2 #define __CONFIG_H__
3 
4 #include <string>
5 
6 namespace PATH {
7  const std::string DATA_PATH = "./DB_DATAFILES/";
8  const std::string INDEX_PATH = "./DB_DATAFILES/INDEX/";
9  const std::string RECORD_PATH = "./DB_DATAFILES/RECORDS/";
10  const std::string CATALOG_PATH = "./DB_DATAFILES/SCHEMAS/";
11 }
12 
13 #define Index_t uint32_t
14 #define pageId_t int32_t
15 #define blockId_t int32_t
16 #define db_size_t uint32_t
17 
18 #define INVALID_PAGE_ID -1
19 
20 #define PAGESIZE 4096
21 #define BLOCKSIZE PAGESIZE
22 #define MAXFRAMESIZE 100
24 #endif