Dear @TIMAI2,
Can you help me?
I have an app using original Tom's extension and use many of it's functions (thus I can not use yr simplified extension).
There is however ExportDatabase that does not work due to an error in (obsolete) private function resolveFileName - so the fix is simple to remove it in the line :
os = new FileOutputStream(resolveFileName(fileName));
so that it reads
os = new FileOutputStream(fileName);
and have user prepare directory/filename (I know it will work only in ASD but it is Ok) .
However I do not have skill to compile such modified extension - can I ask you a favor to do it for me and I hope for other members too and repost it here?
I guess porting yr ListFixer would be nice but it is not a must as I have a workaround.
Best regards
Kuba
Unfortunately, SimpleSqliteV3 does not have all functions of Tom's- in particular, the Upgrade and Async calls which my app uses heavily ... or there is another heavier version I missed ?
Best rgds, Kuba
I do not see an "Upgrade" in the original extension? Do you mean Update ? If so, this can be handled with the appropriate SQL statement.
With regard to Async, I have chosen to not include it, in my view, 99% of situations can be handled with additional blocks. SimpleSqlite is intended to be...simple.
re May be more complicated, but filename is messed-up as part of it was duplicated (if u put anything as filename, set DebugDialog = true then u will see what I mean). It looked to me resolveFileName might have been responsible - of course I can't be sure until I compile it but my Android studio does not want to pull appinventor imports from appinventor repo (probably it is much more complex and I'm probably doing a lot of things wrong - this is why I'm seeking help with tooling)
re Upgrade - I meant functionality (being event DatabaseUpgrade) not function.
re Async - in case of this app I think it is needed as without it did ANR
Dear @TIMAI2 ,
Thanks a lot for support and inspiration !
It works and I'm testing Tab's extension fixed for ASD (4 functions: ImportDatabase, ExportDatabase, InsertFile, ExecuteFile). Will seek Your advice how to share once tested.
Dear All Beginners,
You will have to get rid of some Annotations to rush-compile extensions from Niotron etc - see Rush docs.
You will want the output (answer) from any query/sql you run.....
Just saves on another event block, and this is how it was done in the original extension, so I didn't change it.
As I have siad in my documentation:
I have forked this code, and stripped it back to make a barebones or expert sqlite extension, far fewer blocks, but retaining all the functionality.
Ok, thank you for your answer. Now my doubt is: I get data from a MySQL database and it return a JSON with names and data. How can I use this JSON to insert data into SQLite table?