Comment by codedokode
3 years ago
I meant use the name of the program that embeds SQLite, for example, McAfee, Google Chrome etc. This way the user could easily understand which program has created the files.
3 years ago
I meant use the name of the program that embeds SQLite, for example, McAfee, Google Chrome etc. This way the user could easily understand which program has created the files.
How does it get that in a cross platform way? Or want if the program name has exotic characters?
I think that in 2023 every decent OS should provide a method to get executable name. And every decent filesystem supports exotic characters.
Why spend time and effort on all of that when applications can just configure it themselves if they want to?
If it were possible to determine the program name in a way that was portable and not too painful, it would be a nice feature for the library to automatically set a better default, both to save work for devs using it and to save sqlite devs the hassle of their library getting blamed for things that aren't its fault. Now, I don't think those conditions are likely to be met, but that doesn't mean it wouldn't be nice if it were practical.
> If it were possible to determine the program name in a way that was portable
Every decent OS in 2023 should provide a method for this.
1 reply →