4 ms·
Golang does not have built in SQLite. It has a SQL database abstraction in the stdlib but you must supply a sqlite driver, for example one of these: https://git
by jitl 1y ago
Golang does not have built in SQLite. It has a SQL database abstraction in the stdlib but you must supply a sqlite driver, for example one of these: https://github.com/cvilsmeier/go-sqlite-bench https://github.com/cvilsmeier/go-sqlite-bench
However using the stdlib abstraction adds a lot of performance overhead; although it’ll still be competitive with CSV files.
- reactordev 1y agoOk, one additional dependency to your go.mod - big deal. And by builtin I was referring to the database/sql module which was designed for this.
- fkyoureadthedoc 1y agomaybe this is why they used sha-256 too, it's in the stdlib whereas bcrypt is a package (even if "official")
- ncruces 1y agoThe standard lib has pbkdf2 though. I'm guessing the goal is that the file can be managed more easily with a text editor and some shell utils.
- gtufano 1y agoMost of the more common SQLite implementations for go require CGO and this is a pretty steep request, it's definitely more than a line in go.mod
- jitl 1y agoWell the project goal seems to be extreme minimalism and stdlib only, and the choice of human readable data stores and manually editing the user list suggests a goal is to only need `vim` and `sha256sum` for administration