9

I'm looking for a light-weight database library that I can compile into a C++ application.

Does any such exist?

Alterlife
  • 6,557
  • 7
  • 36
  • 49

4 Answers4

11

SQLite. Not flat-file, but it is file based, can be easily embedded in apps.

epatel
  • 45,805
  • 17
  • 110
  • 144
vartec
  • 131,205
  • 36
  • 218
  • 244
2

For pure XML embedded database you might want to peek at Oracle Berkeley DB XML.

Marcin Gil
  • 68,043
  • 8
  • 59
  • 60
2

Maybe this very lightweight XML library can also be of help: RapidXML. It's an XML parser, not a database library, but depending on your application that might be enough (you mention a flatfile XML data storage).

Frank
  • 64,140
  • 93
  • 237
  • 324
0

You can also look at berkleyDB

From wikipedia:

Berkeley DB (BDB) is a computer software library that provides a high-performance embedded database, with bindings in C, C++, Java, Perl, Python, Ruby, Tcl, Smalltalk, and many other programming languages. BDB stores arbitrary key/data pairs as byte arrays, and supports multiple data items for a single key. BDB can support thousands of simultaneous threads of control or concurrent processes manipulating databases as large as 256 terabytes, on a wide variety of operating systems including most Unix-like and Windows systems, and real-time operating systems.

Kasprzol
  • 4,087
  • 22
  • 20