As WebSQL is embedded in Chromium, which in turn is embedded in Electron, should you decide to update Electron to a version that contains Chromium version 119 or newer, then WebSQL functionality within your application will no longer work (noting that WebSQL depreciation began in Chromium version 97).
Like any technology that is being phased out, it would be in your applications best interest to find an alternative to WebSQL and implement that before updating Electron past a Chromium version where your use of WebSQL stops working.
Of course, you can continue to use WebSQL if you so wish by not upgrade Electron but if your application has a user base, they may think differently as halting all future updates to Electron (thus Chromium as well) may create security holes in the future.
In summary:
WebSQL will continue to function indefinitely if you do not update your version of Electron.
References: