Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. Qt WebAssembly SQL alternatives
Forum Updated to NodeBB v4.3 + New Features

Qt WebAssembly SQL alternatives

Scheduled Pinned Locked Moved Solved Qt for WebAssembly
2 Posts 2 Posters 551 Views 2 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.
  • N Offline
    N Offline
    nsourl
    wrote on last edited by nsourl
    #1

    Hi,

    As far as I know, still, there isn't official Qt WebAssembly sql module support, right?

    In our current project, we are using Qt SQL module to handle SQLite databases for storing and retrieving data for our desktop application. After some discussions, we thought that it could be awesome to expand our application for web browsers compatibility by using Qt WebAssembly and we realized that using persistent storage like SQLite is a huge roadblock.

    Does anyone know any experimental or open-source wasm projects supporting SQL? Any ideas with alternatives ways to replace SQLite and how to port our application in web using Qt WebAssembly with less effort as possible?

    Thanks!

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Yes.
      Due to the sandbox nature,
      I have not seen any WebAssem that could save the DB as local file , only in memory
      which clearly won't fit your use case.

      However, it does seem possible to save to a array and and load from it.
      If your db is not big, it might be useful

      https://sql.js.org/#/

      I wonder if it would be possible to save and load the DB with javascript and then access it from
      c++ as in-mem db. However, I never tried it.

      1 Reply Last reply
      1

      • Login

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