+1. The first argument to `sql.Open` is the driver name. This is the string that the driver used to register itself with `database/sql`, and is conventionally the same as the package name to avoid confusion. It's `mysql` for MySQL database driver \[[github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql)\]. Or `sqlite3` if you use SQLite database driver \[[github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3)\], `postgres` for PostgreSQL database driver \[[github.com/lib/pq](https://github.com/lib/pq)\].
0 commit comments