Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi embedded DB

I need a SMALL/LIGHTWEIGHT DB control (maybe delivered as a single PAS file) that I can integrate directly into my application. I need to store relatively small amounts of data in a small number of tables and I want to access some columns fast. I know that Delphi 7 has that nice BDE but I don't want to trouble the user with the installation process.

I use Delphi 7.


EDIT:
I think I asked the wrong question. So, here is what I actually need:
How to store dynamic data (unknown number of fields) to a file?

like image 795
Server Overflow Avatar asked Feb 06 '11 14:02

Server Overflow


3 Answers

NexusDB offers a free embedded version. Here is an Example

like image 193
Erwin Avatar answered Sep 25 '22 20:09

Erwin


If you're committed to not include any more dependencies with your application, take a look at TClientDataSet.

I'd recommend some sort of "embedded" database. Example: In order to use Firebird as an embedded database, at a minimum, you only need to ship one DLL. You can put that DLL in your installer so the user doesn't need to install anything.

like image 30
Cosmin Prund Avatar answered Sep 24 '22 20:09

Cosmin Prund


As an alternative, how about the freeware TDbf database? It compiles directly into your application and is reliable for lightweight uses.

Also, if you are old enough to remember the days when DBase was the standard desktop database platform, then you probably know how to use it already. :-)

It's at http://tdbf.sourceforge.net

(If there doesn't seem to be a lot of recent activity then it is because it's been around for 10 years and is very stable).

Just a thought.

like image 28
PhilW Avatar answered Sep 24 '22 20:09

PhilW