#include "set.h"
#include "tuple.h"
Go to the source code of this file.
◆ relation_add_tuple()
Add a tuple to a relation.
- Parameters
-
| r | Pointer to the Relation. |
| t | Pointer to the Tuple to add. |
- Returns
- 1 if added, 0 if already present, -1 on error.
◆ relation_create()
| Relation * relation_create |
( |
const char * |
name | ) |
|
Create a new Relation.
- Parameters
-
| name | Name of the relation (copied). |
- Returns
- Pointer to the new Relation, or NULL on failure.
◆ relation_destroy()
Destroy a Relation and free its memory.
- Parameters
-
| r | Pointer to the Relation to destroy. Safe to pass NULL. |
◆ relation_find_tuple()
Find a tuple in a relation matching the target.
- Parameters
-
| r | Pointer to the Relation. |
| target | Pointer to the Tuple to find. |
- Returns
- Pointer to the found Tuple, or NULL if not found.
◆ relation_print()
| void relation_print |
( |
const Relation * |
r | ) |
|