A simple file engine to study techniques to develop database management systems. Project Activities
Clone the project or download directly (zip file)
git clone https://github.com/ggustavo/SNK-DB.gitcd SNK-DB
gcc src/tests/test_buffer_requests.c -o database -Wall -WextraNote: Use -Wall and -Wextra to show warnings
./database| Option | Action | Example |
|---|---|---|
-DBLOCK_SIZE |
Sets block size | gcc (...) -DBLOCK_SIZE=8192 |
-DBUFFER_SIZE |
Sets buffer size | gcc (...) -DBUFFER_SIZE=100000 |
Note: Use db_config.h. If you don't want to use these options
| Name | Action | Example |
|---|---|---|
-DLRU |
Uses Least Recently Used (LRU) | gcc (...) -DLRU |
-DMRU |
Uses Most Recently Used (MRU) | gcc (...) -DMRU |
-DFIFO |
Uses First In, First Out (FIFO) | gcc (...) -DFIFO |
-DARC |
Uses Adaptive Replacement Cache (ARC) (in test phase) | gcc (...) -DARC |
Note: Use db_kernel.h. If you don't want to use these options