Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4304

WebSQL Deprecation

    XMLWordPrintable

Details

    • Bug
    • Status: Shaping in progress
    • Major
    • Resolution: Unresolved
    • 4.2.0
    • None
    • Storage
    • MOODLE_402_STABLE
    • Moodle Apps - 2023 Sprint i3.3

    Description

      We are reaching out to you, as we noticed that your app may be using WebSQL API. 

      WebSQL API is soon to be removed from Chrome. What you need to do depends on how you're using Web SQL.

      • If you're just using Web SQL to detect whether a given browser is Chrome, that method will stop working when Web SQL is removed.
      • If you're using Web SQL to simply store a few data points, localStorage and sessionStorage provide easier ways to do this.
      • However, if you're using Web SQL for more complex storage, you'll need to find a proper replacement.

      Here are some migration options for more complex storage:

      • If your storage needs don't require a relational database, IndexedDB is the standard solution for structured storage on the web. Large sites rely on IndexedDB, and all major browsers support it.
      • For those who do need a relational database, we are partnering with the SQLite team to create an evergreen cross-browser Web SQL replacement. The team is adding a web backend to SQLite, using Emscripten to compile it to WebAssembly and leveraging the new File System Access Handles API as a low-level virtual file interface. We expect this to be ready for use early in 2023. For more information, see our blog post Deprecating and removing Web SQL.

       

      Chrome Storage Team

      Attachments

        1. 1.png
          1.png
          23 kB
        2. 1-1.png
          1-1.png
          23 kB
        3. 2.png
          2.png
          101 kB
        4. 3.png
          3.png
          62 kB

        Activity

          People

            noeldemartin Noel De Martin
            dslee414 dslee414
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: