B4A Question IllegalStateException: attempt to re-open an already-closed object - Erel (first post)    Feb 03, 2022   (1 reaction) https://www.b4x./?query=journal+sql
Only for better code organization.
Closing the SQL object while there is an ongoing async method will break the async method.
Note that you don't really need to close the SQL object before making a backup. B4J Question reduce speed of updating the database - Erel (first post)    Feb 19, 2018   (1 reaction) Both answers are correct. You should never make more than a single insert without an explicit transaction. Async SQL is very simple: SQL with Wait For B4J Question Performance problem with SQLite - Alessandro71 (first post)    Jan 10, 2022 here is the async version: WriteLog("query start") Dim SenderFilter As Object = DB.ExecQueryAsync("SQL", "SELECT DISTINCT carvaluename FROM carvalues WHERE timestamp>=? AND timestamp<=? ORDER BY carvaluename", Array As String(starttimestamp, endtimestamp)) WriteLog("query end") Wait For (SenderFilt B4A Question Insert record into databse - drgottjr (first post)    Feb 07, 2022 i believe all that we have is an async query, not an async non-query (which is what an insert is). i looked at our sql library, and the async query is the only reference i saw. google does have an sqlite helper class which, i think, manages the potential conflict between db requests possibly timin B4A Question JDBC MySQL - Erel (first post)    Apr 04, 2019   (1 reaction) Tutorial about async SQL methods: SQL with Wait For B4A Question sql and ProgressDialogShow - Erel (first post)    Jun 02, 2021 Use the async SQL methods. SQL with Wait For B4A Question CircularProgressBar in For Next Look doesn't update - Erel (first post)    May 23, 2018 A better option is to use the async methods: SQL with Wait For B4J Question Execute tasks in background - Erel (first post)    Nov 12, 2019 Use the async SQL methods. Use jOkHttpUtils2. Everything is done in the background. B4A Question SQLCipher async methods? - jtare    Nov 07, 2017 Have someone experienced with async methods in SQLCipher? For some reason they don't work in my project, this code returns a success = true
sql.AddNonQueryToBatch($"INSERT OR REPLACE INTO ${table} VALUES(?, ?)"$,Array as String(Name,id))
Dim SenderFilter As Object = sql.ExecNonQueryBatch("SQL2")
Wa Other B4A v7.01 has been released! - Erel    Jul 02, 2017   (55 reactions) I'm happy to release B4A v7.01. This update includes the new resumable subs feature. This is the most important programing language improvement since the addition of classes in B4A v2. It makes it much simpler to manage asynchronous tasks. Quoting @johndb : This version sure does clean up the code Page: 1   2   3   4   5   6   7   Powered by ColBERT |