database.h File Reference

#include <sqlite3.h>
#include <libmemo.h>

Include dependency graph for database.h:


Data Structures

struct  memo_database
struct  memo_database_data
 Used to retrieve data from the database. More...

Enumerations

enum  memo_database_data_types { INTEGER, STRING }

Functions

void memo_database_data_free (memo_database_data *data)
 Frees a memo_database_data structure.
memo_database_datamemo_database_data_init ()
 Prepares a new memo_database_data structure.
int memo_database_execute (memo_database *db, const char *query, memo_database_data *ret)
 Executes a given SQL query.
unsigned long memo_database_get_last_change (memo_database *db)
 Returns the ID of the last change to the database.
int memo_database_init (memo_database *db)
 Initialise the database.
memo_word ** memo_database_load_words_from_database_data (memo_database *db, memo_database_data *data)
 Creates a memo_word structure filled with the provided data.
void memo_database_update_last_change (void *data, int action, char const *dbname, char const *rowname, sqlite3_int64 rowid)
 A callback updating memo_database::last_change.

Generated on Sun Feb 22 01:45:40 2009 for memo by  doxygen 1.5.7.1