Last change
on this file since af30cc7 was
2629906,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago
|
#941 add basic database-independent abstraction (dbi)
Add basic infrastructure to support for the independent database layer.
|
-
Property mode set to
100644
|
File size:
322 bytes
|
Line | |
---|
1 | #ifndef __OG_DBI |
---|
2 | #define __OG_DBI |
---|
3 | |
---|
4 | #include <dbi/dbi.h> |
---|
5 | |
---|
6 | struct og_dbi_config { |
---|
7 | const char *user; |
---|
8 | const char *passwd; |
---|
9 | const char *host; |
---|
10 | const char *database; |
---|
11 | }; |
---|
12 | |
---|
13 | struct og_dbi { |
---|
14 | dbi_conn conn; |
---|
15 | dbi_inst inst; |
---|
16 | }; |
---|
17 | |
---|
18 | struct og_dbi *og_dbi_open(struct og_dbi_config *config); |
---|
19 | void og_dbi_close(struct og_dbi *db); |
---|
20 | |
---|
21 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.