The in-memory database.
More...
|
| int | _s4_add (s4_transaction_t *trans, const char *key_a, const s4_val_t *val_a, const char *key_b, const s4_val_t *val_b, const char *src) |
| | Adds a new relation to a database. More...
|
| |
| int | _s4_add_internal (s4_t *s4, const char *key_a, const s4_val_t *value_a, const char *key_b, const s4_val_t *value_b, const char *src) |
| |
| int | _s4_del (s4_transaction_t *trans, const char *key_a, const s4_val_t *val_a, const char *key_b, const s4_val_t *val_b, const char *src) |
| | Deletes a relation from a database. More...
|
| |
| s4_resultset_t * | _s4_query (s4_transaction_t *trans, s4_fetchspec_t *fs, s4_condition_t *cond) |
| | Queries a database for all entries matching a condition, then fetches data from them. More...
|
| |
| s4_entry_data_t * | _entry_create_data () |
| |
| void | _entry_free_data (s4_entry_data_t *data) |
| |
| void | _free_relations (s4_t *s4) |
| | Frees all relations in a database. More...
|
| |
The in-memory database.
◆ _entry_create_data()
◆ _entry_free_data()
◆ _free_relations()
| void _free_relations |
( |
s4_t * |
s4 | ) |
|
Frees all relations in a database.
- Parameters
-
| s4 | The database to free in |
Referenced by _reread_file().
◆ _s4_add()
Adds a new relation to a database.
- Parameters
-
| s4 | The database to add to |
| key_a | The key of the first entry |
| val_a | The value of the first entry |
| key_b | The key of the second entry |
| val_b | The value of the second entry |
| src | The source that made the relation |
- Returns
- non-zero if everything went alrite, 0 otherwise
Referenced by _oplist_execute(), _oplist_rollback(), and s4_add().
◆ _s4_add_internal()
| int _s4_add_internal |
( |
s4_t * |
s4, |
|
|
const char * |
key_a, |
|
|
const s4_val_t * |
value_a, |
|
|
const char * |
key_b, |
|
|
const s4_val_t * |
value_b, |
|
|
const char * |
src |
|
) |
| |
◆ _s4_del()
Deletes a relation from a database.
- Parameters
-
| s4 | The database to delete from |
| key_a | The key of the first entry |
| val_a | The value of the first entry |
| key_b | The key of the second entry |
| val_b | The value of the second entry |
| src | The source that made the relation |
- Returns
- non-zero if everything went alrite, 0 otherwise
Referenced by _oplist_execute(), _oplist_rollback(), and s4_del().
◆ _s4_query()
Queries a database for all entries matching a condition, then fetches data from them.
- Parameters
-
| trans | The transaction this query belongs to. |
| fs | The fetchspec to use when fetching data |
| cond | The condition to check entries against |
- Returns
- A resultset with a row for every entry that matched