I successfully got through my previous hurdle listed at https://aloyecom.us1.aloye.online/localforage-sql-lite-driver/ In the sense that I have the default code provided by the code publisher working from the exact area of my project that I need it to.
The next step is to modify the code so that the localforage sqlite driver gets initialized within my own code, as opposed to the default code provided by the code publisher. I have the following piece of code that sits inside a larger JavaScript structure.
The default/demo code is shown below.
Using the code shown above verbatim, in my project as a test, I get the following expected results:


However, I need to alter the code so that I can pass the key and value into the setItem and getItem areas as shown below.
Obviously, the code below doesn’t work quite right. That’s what I need help modifying.
The goal is to refactor the code so that it will allow me to pass it in values, and those values will in turn be used within the getItem and setItem commands.
I need to simply call LFSave(“MyPassedKey”, “MyPassedValue”) and I need to instantiate the localforage cordova sql lite driver, and then pass the key and compressed values to the localforage.setitem command below.

I am looking for assistance with re-writing the function directly above so that it will work as desired.
If I replace the working demo code with the refactored code shown directly above, I have the following problems:


It defaults to Async Storage as opposed to using localforage-cordovasqlitedriver, which is the problem I need assistance properly refactoring to fix.
If you open the project file from https://www.aloye.com/code/ECTCB_IONIC_CS_X.zip and look at /www/ECTGW_9x19/index.html you will see how I need to call the LFSave(x,y) function.
If you look at the javascript file at /www/js/initlocalforageCordovasqlitedriver.js you will see how the LFSave(x,y) function must be callable.
