Den 04-02-2015 kl. 15:18 skrev alexander golks:
> Am Wed, 4 Feb 2015 15:01:50 +0100
> schrieb Till Oliver Knoll <till.oliver.kn...@gmail.com>:
>
>>
>>
>>
>>> ...
>>>     QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");
>>> ...
>>>     bool ok = db.open();
>>>
>>> When I run this ok is always true, no matter what arguments are passed.
>> I am not experienced with SQLITE, but is it possible that each time a new DB 
>> instance (file) is created, if no such instance exists yet? Hence the 
>> "connection" alway succeeds?
>>
> or perhaps because sqlite has no notion of usernames, passwords, et al? just 
> the "filename" matters.

That's exactly what happens. sqlite is a simple file. You have whatever 
normal file modification rights your current user have on it.

If that's not what you need, you can't use sqlite.

Bo.

-- 
Viking Software
Qt and C++ developers for hire
http://www.vikingsoft.eu

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to