Open-Source C or C++ Embedded relational database (copy source to deploy)

1k Views Asked by At

I have a cross platform project where the client gets the code, but doesn't want to resolve any dependencies. The requirements are best solved with a relational database, so it seems I need to copy the source of an embeddable relational database into my program and compile the library directly into the executable or as part of the project.

Is there a relational embeddable database which has a permissive license so that I can copy the source directly into the project? Which one has the smallest code base? Ideally I'm thinking of one C source file and one header that I can copy into the program and start using immediately.

2

There are 2 best solutions below

0
On BEST ANSWER

SQLite

They have “amalgamation” source distribution which is one C source file, which can be included into a project and used right away.

0
On

SQLite comes to mind.