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. closing Sqlite db using localStorage QML
Forum Updated to NodeBB v4.3 + New Features

closing Sqlite db using localStorage QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 846 Views 3 Watching
  • 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.
  • F Offline
    F Offline
    filipdns
    wrote on 7 Jun 2018, 12:10 last edited by filipdns 6 Jul 2018, 12:11
    #1

    Dear all,

    I'm working on project using local storage and I would like the application able to be used by multiple user.

    My problem is when I'm execute the application on one station, the database is not accessible to open the application on other station, could you help me.

    the code is the same used in the localstorage qml example but nowhere I saw db.close in the example:

    http://doc.qt.io/qt-5/qtquick-localstorage-example.html

    Thank you very much for your help!!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KillerSmath
      wrote on 7 Jun 2018, 15:16 last edited by
      #2

      Hi there, i have a question:

      • What you want to say with Station?

      About the connetion, the LocalStorage has mechanics automatilly to open and close connetions to Sqlite database.

      @Computer Science Student - Brazil
      Web Developer and Researcher
      “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

      1 Reply Last reply
      0
      • F Offline
        F Offline
        filipdns
        wrote on 10 Jun 2018, 09:31 last edited by
        #3

        I put the data base in local server and I need to be able to have 2 or more computers allowed to read/write in the database at the same time

        K 1 Reply Last reply 10 Jun 2018, 10:31
        0
        • F filipdns
          10 Jun 2018, 09:31

          I put the data base in local server and I need to be able to have 2 or more computers allowed to read/write in the database at the same time

          K Offline
          K Offline
          KillerSmath
          wrote on 10 Jun 2018, 10:31 last edited by KillerSmath 6 Oct 2018, 10:36
          #4

          @filipdns
          If i'm not mistaken, sqlite is not a database server, but only a small library that use SQL to directly management in the file.

          • Can you not use another database with server service, like Mysql or Postgresql ?

          @Computer Science Student - Brazil
          Web Developer and Researcher
          “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

          1 Reply Last reply
          1
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 10 Jun 2018, 11:49 last edited by
            #5

            Hi,

            In addition to @KillerSmath, Local Storage, as the name implies is to be used locally on the machine where your application it running.

            If you have a central database that should server multiple clients, you really should consider using a database engine that is meant for that kind of setup.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • F Offline
              F Offline
              filipdns
              wrote on 10 Jun 2018, 11:53 last edited by
              #6

              Thank you very much both of you, I will work to this way.

              thanks a lot for your time!!

              1 Reply Last reply
              0

              1/6

              7 Jun 2018, 12:10

              • Login

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