summaryrefslogtreecommitdiffstats
path: root/sources/dbi.h
blob: 882550f1451168f41a8dbfd94c18fe3681c64816 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __OG_DBI
#define __OG_DBI

#include <dbi/dbi.h>

struct og_dbi_config {
	const char	*user;
	const char	*passwd;
	const char	*host;
	const char	*database;
};

struct og_dbi {
	dbi_conn	conn;
	dbi_inst	inst;
};

struct og_dbi *og_dbi_open(struct og_dbi_config *config);
void og_dbi_close(struct og_dbi *db);

#endif