When i use .delete().at() to clear the entire database, it appears to work. If i do a .select(), it returns a empty array. So far, so good.
But if i try to insert new data with a new .from(data_array), the new data gets appended to the old data which was suposed to be deleted. The old and the new data are returned by .select() which before the .from() showed a empty list.
I looked in the code and the collections private variable is never cleared, and the new data is added with .push().
The only way i found to really clear the table was using .join([]);. It works, but its a quirky workaround.
I am not sure if this is working as intended and im doing something wrong or its something that can be improved.
When i use
.delete().at()
to clear the entire database, it appears to work. If i do a.select()
, it returns a empty array. So far, so good. But if i try to insert new data with a new.from(data_array)
, the new data gets appended to the old data which was suposed to be deleted. The old and the new data are returned by.select()
which before the.from()
showed a empty list. I looked in the code and thecollections
private variable is never cleared, and the new data is added with.push()
. The only way i found to really clear the table was using.join([]);
. It works, but its a quirky workaround. I am not sure if this is working as intended and im doing something wrong or its something that can be improved.