Skip to content

Commit 8c06b6f

Browse files
committed
Update README
1 parent eec4e66 commit 8c06b6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ This has the same effect as an empty DSN string:
114114
115115
```
116116

117-
If your database name includes a slash, use the [URL encoding](https://en.wikipedia.org/wiki/Percent-encoding) `%2F`:
117+
`dbname` is escaped by [PathEscape()]()https://pkg.go.dev/net/url#PathEscape) since v1.8.0. If your database name is `dbname/withslash`, it becomes:
118+
118119
```
119120
/dbname%2Fwithslash
120121
```

0 commit comments

Comments
 (0)