Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good Database with C library?

Tags:

c

database

What is a good database with support for C? I want a database that can persist changes when the program is closing and retrieve them when the user starts up the program. I was thinking maybe like SQLite or Berkeley DB. Some documentation would be great too. I just need a database with a library for C. It will be used locally to store simple information like a key (of char *) that corresponds with a value (of char *)

like image 233
Mohit Deshpande Avatar asked Apr 19 '10 00:04

Mohit Deshpande


2 Answers

For embedded data, try SQLite.

Although if it's just program settings for a single instance of the program, an XML file might be your best bet. There are lots of freely-available XML parsers for C.

like image 168
Robert Harvey Avatar answered Oct 11 '22 12:10

Robert Harvey


PostgreSQL comes with libpq, which is a C library.

like image 40
Cheok Yan Cheng Avatar answered Oct 11 '22 14:10

Cheok Yan Cheng