PDA

View Full Version : Databases?



Atomic_Sheep
5th May 2012, 13:24
Hi, I've had limited database experience so my knowledge is rather limited. I was wondering whether it's possible to create a database which I would obviously use in my program that wouldn't require the user to install additional software packages for e.g. MS Access or the like and that I could use simply as a resource file in my project and for it to be recognised? I see that Qt has some SQL classes, but I'm not sure whether that would require the user to install some sort of SQL addon? I can obviously use a .txt document for this purpose but I was wondering whether there are other options? Possibly ones that users won't be able to open or if they do, they will just get gobbledygook.

Oh forgot to mention, I'm not 100% sure at the moment, but my database won't that big and the plan is to be able to load the whole of it into memory upon starting my application, so that's another consideration that I have.

Lykurg
5th May 2012, 15:27
You can use SQLite. For that no installation is required and Qt offers a driver for that out of the box. Only you can't use it with the resource system of Qt. But that is not possibly for any database. So use SQLite with a normal file or put a SQL file in the resource system and load it into memory when starting up the application.

Atomic_Sheep
7th May 2012, 13:15
Thanks I'll look into it.