Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Dec 6, 2024
1 parent f88a1fb commit 529a1ab
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,19 @@ func main() {
}
```

### Custom Driver Name

A custom driver name can be set via build options: `-ldflags '-X "github.com/go-mysql-org/go-mysql/driver.driverName=gomysql"'`.

This can be useful when using [GORM](https://gorm.io/docs/connecting_to_the_database.html#Customize-Driver):
```go
mysql.Config{
DriverName: "gomysql",
...
}

```

### Custom NamedValueChecker

Golang allows for custom handling of query arguments before they are passed to the driver
Expand Down

0 comments on commit 529a1ab

Please sign in to comment.