summaryrefslogtreecommitdiff
path: root/dbhandling.h
blob: df93a0e46be5d87f3644b1257ee62f76e4b6df37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _DBHANDLING_
#define _DBHANDLING_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sqlite3.h>

#include "enum.h"

void exit_with_error(sqlite3 *db, const char *msg);
void select_from_table(sqlite3 *db, args_e target, char *qp);
void update_entry(sqlite3 *db, args_e target, char *qp, char *value, char *status);
void add_entry(sqlite3 *db, args_e target, char *name, char *author, char *value, char *status);

#endif