TIMAI2 very thank you for time you spent for my question.
I have compared your apps (SQlitebased for local and Googlesheets for web) and probably SQlite is faster.
That said, I think that both apps are great!!!
My only question is whether it's a good idea to use Google Sheets for other web features of my app (no countries/cities) where I have sensitive user data.
I've read the limits of Google Sheets (300 read/write requests per minute, 10 million cells, 50,000 characters per cell).
If I'm within the limits and encrypt both the JSON credentials and the Spreadsheet ID, my questions are:
From a data loss point of view, Can I trust Google Sheets?
Is there a chance that malicious people could access my Google Sheets and steal sensitive data?
For what regards my first question about local database, I think I will use SQLite, it is very fast. I have slight modified your app (after a fast read of the commands I need) and introduced a filter textbox to filter cities with first letter (see image).
Thank you very much to all!
Just saying that you "can" set a different database as Default, you do not have to.
In my example I simply imported the database to the current default database.
The Screen.Initialise event blocks test if the database has been imported (returns true if successful, false if it fails), then if true opens the database for "work"
db or sqlite are two of many different filename extensions used for sqlite databases.
I used a program called DB Browser for SQLite to import your csv files as tables. I use Linux but I believe there is a Windows version as well. Or just use the one I created.
Ok. And in this case, could I have overwrite problems like you well describe in your page?
Ok, I read that it is ok for Windows.
Do you know if I can use "SQLite Studio" to create the database from csv? I read that it is possible, but I don't know if DB Browser is simpler...
There also is a nice Windows tool called SQLite Studio to create, edit and browse SQLite databases. Thank you Frederic for this tip, thank you Pawel for providing this tool.
Setting a database as default from a different location can help to avoid overwriting the original default database. Given this is probably the only database your are going to be using (countries/cities) I don't think you will have anything to worry about ?