News for hackers. Stuff that matters.
Re:Show HN: Caffeine – Minimum viable back end for prototyping by robmccoll on Tuesday November 16, 2021 @09:44AM (#29241065)
In queries, you should use the database/sql.DB interface if possible with your database https://pkg.go.dev/database/sql#DB.Exec

It should sanitize / quote arguments for you and protect against SQL injection. Note that this doesn't mean all data sanitization is performed, just the basic '; do my stuff here; -- type of things.

There are no comments on this comment yet.