Results 1 to 3 of 3

Thread: how to know information about the sqlite database active connection

  1. #1
    Join Date
    Jun 2011
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default how to know information about the sqlite database active connection

    Hi,
    I am new to QT sqlite programming.
    Can anyone tell me how to know the active database connections if sqlite database is accessed through multiple connections.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to know information about the sqlite database active connection

    What exactly is your question?
    If you create multiple connections to the same file with separate connection names then you know the active connections. Qt can give the names back to you through QSqlDatabase::connectionNames().

  3. #3
    Join Date
    Jun 2011
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to know information about the sqlite database active connection

    Thanks,
    I got the answer

Similar Threads

  1. Replies: 7
    Last Post: 14th August 2015, 20:49
  2. connection to sqlite database using qt4
    By elimelick in forum Newbie
    Replies: 0
    Last Post: 25th July 2010, 14:53
  3. SQLite connection and encoding
    By mhbeyle in forum Qt Programming
    Replies: 2
    Last Post: 3rd December 2009, 15:25
  4. How can I send a SQLite :memory: database connection ?
    By georgep in forum Qt Programming
    Replies: 4
    Last Post: 20th July 2009, 12:07
  5. QT - SQLite Connection
    By sabeesh in forum Qt Programming
    Replies: 14
    Last Post: 3rd June 2009, 13:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.