You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using AlaSQL in my Ionic Capacitor app for web-based SQL operations on IndexedDB. The tables are created correctly, and data is inserted in the expected format initially. However, after refreshing the browser, the schema appears to be lost, and while data continues to be inserted, it no longer follows the correct format. Tables are present but their schema is getting lost so when i am inserting after a browser refresh, the data is inserted as it is, not in a correct format.
Is there a way to persist the schema, or am I overlooking something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am using AlaSQL in my Ionic Capacitor app for web-based SQL operations on IndexedDB. The tables are created correctly, and data is inserted in the expected format initially. However, after refreshing the browser, the schema appears to be lost, and while data continues to be inserted, it no longer follows the correct format. Tables are present but their schema is getting lost so when i am inserting after a browser refresh, the data is inserted as it is, not in a correct format.
Is there a way to persist the schema, or am I overlooking something?
Here is how I’m initializing the database:
After this, I run the CREATE TABLE queries and then perform data insertions.
Beta Was this translation helpful? Give feedback.
All reactions