I needed to store some data locally, so I thought about using SQL Lite locally within the application.
From what I saw, you have to do "await Database.load('sqlite:test.db')". I was just wondering why you have to include 'sqlite:test.db' in the load() method. What does that mean? I was also curious about where the database is stored. Sorry if these are silly questions.
#Question about SQLite Load, and where the database is located.
1 messages · Page 1 of 1 (latest)
The path is relative to tauri::api::path::BaseDirectory::AppConfig
The default app config directory. Resolves to BaseDirectory::Config/{bundle_identifier}.
So if you use sqlite:test.db it'll be placed on the AopData folder with the name test.db
I think sqlite: is just to let the plugin know the db tupe you're loading
Never used the plugin tho. I'll have to use it this week so I'll test it and let you know
you're spot on