Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [solved] where do openDatabaseSync() store the sqlite file ?
Forum Update on Monday, May 27th 2025

[solved] where do openDatabaseSync() store the sqlite file ?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 4 Posters 6.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    brouits
    wrote on 9 Sept 2010, 18:35 last edited by
    #1

    I use the local storage sql api in QML but i don't see any file created by openDatabaseSync().
    So i can't check my database with the sqlite cmd-line tool to debug my application. It seems i missed something. Any hint please ?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      midnite
      wrote on 12 Sept 2010, 13:37 last edited by
      #2

      Hi!

      Answer is here: "http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeengine.html#offlineStoragePath-prop":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeengine.html#offlineStoragePath-prop

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Thanatos
        wrote on 10 Oct 2011, 21:34 last edited by
        #3

        author of thread could mark this as [solved]

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kwhitefoot
          wrote on 3 Nov 2012, 20:16 last edited by
          #4

          There seems to be some confusion about where the files are created and some people seem to think that it is important to avoid name collisions, or at least they give that impression.

          However, at least on the N9, it doesn't actually matter what you call it unless you have more than one used by the same application because the files are stored in:

          /home/user/.local/share/data/${organization-name}/${app-name}/QML/OfflineStorage/Databases/

          These two variables can be set in main:

          QApplication::setApplicationName(app-name);
          QApplication::setOrganizationName(organization-name);
          

          Can anyone give some clear rules about this? The documentation doesn't make it clear what name needs to be used and some projects targetting the N9 use very generic names like "SettingsDB" (Buienradar).

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved