We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the password contains the character '#', the parse don't work
Connect to database
parse "pg://postgres:passw": invalid port ":passw" after host
github.com/k1LoW/tbls/datasource.Analyze /Users/runner/work/tbls/tbls/datasource/datasource.go:57
tbls version
Ubuntu bionic
macOS Calalina
WSL2
bash
zsh
poworshell
DEBUG=1
parse "pg://postgres:passw": invalid port ":passw" after host github.com/k1LoW/tbls/datasource.Analyze /Users/runner/work/tbls/tbls/datasource/datasource.go:57 github.com/k1LoW/tbls/cmd.glob..func7 /Users/runner/work/tbls/tbls/cmd/out.go:77 github.com/spf13/cobra.(*Command).execute /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:916 github.com/spf13/cobra.(*Command).ExecuteC /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 github.com/spf13/cobra.(*Command).Execute /Users/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:968 github.com/k1LoW/tbls/cmd.Execute /Users/runner/work/tbls/tbls/cmd/root.go:191 main.main /Users/runner/work/tbls/tbls/main.go:34 runtime.main /usr/local/Cellar/go/1.19.5/libexec/src/runtime/proc.go:250 runtime.goexit /usr/local/Cellar/go/1.19.5/libexec/src/runtime/asm_amd64.s:1594
# DSN (Database Source Name) to connect database dsn: pg://postgres:passw#rd@localhost:5432/test_db
The text was updated successfully, but these errors were encountered:
# is the syntax for YAML comments and is not a valid URL.
#
You might want to surround the DSN with a single quart and urlencode.
dsn: 'pg://postgres:passw%23rd@localhost:5432/test_db'
Sorry, something went wrong.
k1LoW
No branches or pull requests
What happened
If the password contains the character '#', the parse don't work
What you expected to happened
Connect to database
What stack trace or error message from tbls did you see?
parse "pg://postgres:passw": invalid port ":passw" after host
Anything else we need to know?
Environment
tbls version
1.60.0Ubuntu bionic
,macOS Calalina
,WSL2
, etc ) macOS Venturabash
,zsh
,poworshell
, etc ) zshDEBUG=1
)The text was updated successfully, but these errors were encountered: