1

What database drivers and libraries do people use with MariaDB in Go? The page https://go.dev/wiki/SQLDrivers lists 3 MySQL drivers, but none for MariaDB. The SqlX seems to use the same drivers as database/sql, but it does mention MySQL explicitly in the docs but not MariaDB. The library GORM also mentions MySQL explicitly in the docs but not MariaDB.

Has anyone compared these drivers? Are there any known gaps in MariaDB compatibility? Is any of them more performant than the others? Are they able to take full advantage of MariaDB's performance features?

1
  • Just found github.com/nhatthm/otelsql which seems interesting, but it too only mentions MySQL explicitly Commented Oct 23 at 5:33

1 Answer 1

0

The most popular one seems to be https://github.com/go-sql-driver/mysql. However I haven't found any benchmarks or other in-depth comparisons about them. For now I would just stick to this default MySQL driver for MariaDB.

By the way, this would be a great opportunity for someone to make a MariaDB optimized Go driver!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.