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

Core YACDB managment, from user input to execution. More...

Include dependency graph for core.h:

Go to the source code of this file.

Functions

void db_handle (FILE *f, char *line)
 Core function that transform a line of user input into yacdb instruction and execute them. More...
 
void init_database ()
 Function that needs to be called before being able to call db_handle()
 
void debug_parser (FILE *f, char *line)
 Debug function to test the parser. More...
 

Detailed Description

Core YACDB managment, from user input to execution.

Author
Mateo

Function Documentation

◆ db_handle()

void db_handle ( FILE *  f,
char *  line 
)

Core function that transform a line of user input into yacdb instruction and execute them.

Parameters
fThe file in which to write the result
lineThe line entered by the user

◆ debug_parser()

void debug_parser ( FILE *  f,
char *  line 
)

Debug function to test the parser.

Parameters
fOutput file (stdout)
lineUser input