Skip to content

Commit 773c5bc

Browse files
hudsonmdhudsmat
andauthored
Update docs to handle special characters (#60)
Co-authored-by: hudsmat <me@hudsmat.com>
1 parent 517d62c commit 773c5bc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ Examples of valid connection strings:
197197
* `sqlserver://user:password@localhost:1433?database=yourDb`
198198
* `sqlite3://mermerd_test.db`
199199

200+
#### Special Characters
201+
Passwords with special characters may run into the "net/url: invalid userinfo" error. This can be worked around by percent encoding the characters
202+
203+
| Invalid | Valid |
204+
|-----|----------------------------------------|
205+
|postgresql://user:password$@localhost:5432/yourDb|postgresql://user:password%24@localhost:5432/yourDb
206+
|postgresql://user:pass[];$/word@localhost:5432/yourDb|postgresql://user:pass%5B%5D%3B%24%2Fword@localhost:5432/yourDb
207+
208+
200209
## How can I write/update Mermaid-JS diagrams?
201210

202211
* All information can be found here: [Mermaid-JS](https://mermaid-js.github.io/mermaid/#/entityRelationshipDiagram)

0 commit comments

Comments
 (0)