theseus-rs / rsql

Command line interface for CockroachDB, DuckDB, LibSQL, MariaDB, MySQL, PostgreSQL, Redshift, Snowflake, SQLite3 and SQL Server
https://theseus-rs.github.io/rsql/rsql_cli/
Apache License 2.0
129 stars 5 forks source link

Update documentation if running on Windows command line to use double quote " instead of single quote ' for database url #185

Closed yrfu closed 2 months ago

yrfu commented 2 months ago

What steps will reproduce the bug?

  1. Download msi binaries for Windows and install
  2. run command using single quote ' as per documentation
  3. run the command again using double quotes " for database url

What happens? What's not working C:\Program Files\rsql_cli\bin>rsql --url 'mysql://root:secrets!@127.0.0.1:3306/mysql' -- "SELECT version();" Error: relative URL without a base

What's working C:\Program Files\rsql_cli\bin>rsql --url "mysql://root:secrets!@127.0.0.1:3306/mysql" -- "SELECT version();" version()

8.0.39-community 1 row (1.7841ms)

What did you expect to happen instead? version()

8.0.39-community 1 row (1.7841ms)

How did you install rsql? Via Github release msi installer for Windows

Information about your environment

brianheineman commented 2 months ago

@yrfu thank you for reporting the issue. This should be addressed by #187