[Interest] Regarding craeting sqlite database in RAM

Scott Aron Bloom scott.bloom at onshorecs.com
Mon Mar 16 10:09:35 CET 2015


If ( db.databaseName() == “:memory:” )

Should do the trick

From: interest-bounces+scott.bloom=onshorecs.com at qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs.com at qt-project.org] On Behalf Of Jha Sonakumar
Sent: Monday, March 16, 2015 1:42 AM
To: interest at qt-project.org Interest
Subject: [Interest] Regarding craeting sqlite database in RAM


Hi ,

As we know we can create sqlite database in RAM



db = QSqlDatabase::addDatabase("QSQLITE");\
db.setDatabaseName(":memory:");



But how do we check whether it's created in RAM or not.

Is any command in linux to check it.


Best Regards
Sona
________________________________
============================================================================================================================
Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.
============================================================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150316/7ce2a91a/attachment.html>


More information about the Interest mailing list