However, that was never an SQLite browser and editor. That just allows you to create/delete SQLite databases associated with a user…which is kind of a weird thing to do for SQLite databases, since any app can create an SQLite database without any administrator involvement.
So, it exists, but there’s no reason to use that Virtualmin module.
But, a browser/editor UI would be useful. And it wouldn’t be all that hard to make. I’ll look into it.
Of course, that’s how most folks make modules (including us). SQLite is so much simpler than MySQL or PostgreSQL, though, that I’m hesitant to suggest forking either of those. I mean, the SQL stuff and the table display makes sense, but SQLite doesn’t have like 70% of the stuff in the UI for either of the big DBs, so you’d spend more time pruning than adding to.
The more I think on it, the more…not complicated…but, different from Mariadb/PostgreSQL it seems. SQLite doesn’t run as root. It doesn’t run at all, actually, it’s a file and bindings to interact with that file (that also happens to have a CLI that can work with that file, as well). It’s not a service, it doesn’t need root (so it could be a Usermin module).
Ideally, a Webmin module would use the Perl bindings for SQLite to interact with the file, but I wouldn’t want to add a dependency to the Webmin package for that, though maybe a suggests level dep would be fine. And, ideally, you’d have a database file with WAL enabled so Webmin/Usermin doesn’t lock your tables while interacting with it (but there’s no way for me to enforce that; Write-Ahead Logging). It could use the sqlite3 command to interact with the DB, but that feels sub-optimal.
Anyway, I’ll try to give it a look when I’ve got a little free time (and I’ll try to remember I said that).
@Jamie, alright, the new Webmin SQLite module has been fully tested and checked in. If you have any questions or suggestions, please open an issue in GitHub, and I’ll get to it quickly.
The new Webmin SQLite module can be installed now from the new repository under the package name webmin-sqlite.
I’d recommend running tests with the latest Development build of Webmin.
This is what it looks like with the latest version of the redesigned Gray Theme:
really thanks,
much appreciated.
you’re great, better than AI-dev-agents.
just one question, will it be included in next webmin release, right ?
I can wait, but do you know if I can download it separately in advance ?
just to test it.
Yes, it will be included in the Webmin full package. And if you installed Virtualmin recently and are using the new modular Webmin/Virtualmin repo, then you’d have to install it using the package manager with the webmin-sqlite package name.
You could likely install it from download.webmin.dev. However, if you don’t feel comfortable with this, it’s better to wait for the next Webmin release.