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

Structures for instruction management. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  charray
 An array of char* (string) More...
 
struct  condition
 An equality condition. More...
 
struct  instr
 One yacDB instruction, this type is meant to be casted into other instr type. More...
 
struct  SelInstr
 Select instruction. More...
 
struct  CrtInstr
 Create instruction. More...
 
struct  AddInstr
 Add instruction. More...
 
struct  InstrArray
 An array of instruction. More...
 

Macros

#define IDENT_MAX_LEGHT   20
 
#define COLUMNS_MAX_NB   10
 

Typedefs

typedef enum dataType dataType
 
typedef enum instrType instrType
 The different instruction types, such as select or add.
 
typedef struct charray charray
 An array of char* (string)
 
typedef struct instr instr
 One yacDB instruction, this type is meant to be casted into other instr type.
 
typedef struct InstrArray InstrArray
 An array of instruction.
 

Enumerations

enum  dataType { integer , string , unknownDataType }
 
enum  instrType {
  sel , upd , del , add ,
  crt , drop , unknownInstrType
}
 The different instruction types, such as select or add. More...
 

Detailed Description

Structures for instruction management.

Author
Mateo

Enumeration Type Documentation

◆ instrType

enum instrType

The different instruction types, such as select or add.

Enumerator
sel 

Select, same as SELECT in sql.

upd 

Update (not implemented)

del 

Delete (not implemented)

add 

Add, for data insertion.

crt 

Create, for table creation.

drop 

Drop (not implemented)

unknownInstrType 

Unknown, when there is a parsing error.