Hacker GitHub

← All repos

go-sql-driver/mysql

View on GitHub ↗ ★ 15,283 Go

Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package

8 mentions on Hacker News by 8 people: 0 stories, 8 comments · first 2013-03-25 · latest 2026-05-04

Mentions per year 8 mentions · busiest year 2013 (2)
20082026
  1. Thats the default for go projects. Go imports are repository strings (e.g.): import ("github.com/go-sql-driver/mysql") so it's standard to have the library files in the root directory.
  2. …the doc for doing client-side param interpolation in the most popular MySQL driver for Golang: https://github.com/go-sql-driver/mysql#interpolateparams (see warning in italics) It also explicitly detects if your initial connection settings…
  3. …say it resolves the problem because if you read the bug report from the author opened since 2017 https://github.com/go-sql-driver/mysql/issues/657 It's repeatedly pointed out by one maintainer that his server and application are…
    comment by user5994461 · 2020-05-21 · in Three bugs in the Go MySQL driver
  4. …I checked, I could only find one package that didn't make heavy use of named returns[4] [4] https://github.com/go-sql-driver/mysql/ So if they are frowned upon, I'd be interested to know more about who and why.
    comment by laumars · 2017-06-30 · in Benefits of named return values in Go
  5. …bad, I'd argue. Packages that invoke code when you import them and require this sort of import: import _ "github.com/go-sql-driver/mysql" Aren't idiomatic. They're hacks, because the database module didn't really consider how it was going…
    comment by shadowmint · 2014-10-06 · in A survey of the current state of Golang ORMs
  6. …also seem to have several unit test files, though I can't judge on the quality of those. [1] https://github.com/go-sql-driver/mysql/blob/master/driver.go...
    comment by tokenizerrr · 2014-10-05 · in A survey of the current state of Golang ORMs
  7. …1: https://groups.google.com/forum/?fromgroups=#!topic/golang-n... 2: https://github.com/go-sql-driver/mysql/pull/52 https://github.com/go-sql-driver/mysql/pull/55
    comment by voidlogic · 2013-04-22 · in Web Framework Benchmarks Round 3
  8. …one of these, http://godoc.org/?q=sql Maybe consider this which looks considerably up to date. https://github.com/go-sql-driver/mysql Your experience last month with Go may very well be irrelevant now. Ive been using Go for about a year…
    comment by mortdeus · 2013-03-25 · in Zero-downtime restarts in Go