Skip to content
New issue

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

Support URL schemas #342

Closed
huyphams opened this issue Dec 10, 2020 · 6 comments
Closed

Support URL schemas #342

huyphams opened this issue Dec 10, 2020 · 6 comments

Comments

@huyphams
Copy link
Contributor

  1. Which driver are you using and version of it (Ex: PostgreSQL 10.0): mysql

  2. Which TablePlus build number are you using (the number on the welcome screen, Ex: build 81): build 160

  3. The steps to reproduce this issue: Try to launch TablePlus on Windows with a connection string

I'd like to launch TablePlus with a connection string, as is done easily on macOS as explained in TablePlus/TablePlus#227 (comment)

On macOS, you'd do this per #227

query="mysql://root:root@127.0.0.1:${DDEV_HOST_DB_PORT}/db"

open "$query" -a "/Applications/TablePlus.app/Contents/MacOS/TablePlus"


but how do you do it on Windows?

The context: ddev is a docker-based local development tool that happily launches tableplus on macOS using the technique above (and can heidisql on Windows because it has the technique) . We'd like to be able to support TablePlus on Windows and WSL2 as well.

@huyphams
Copy link
Contributor Author

huyphams commented Jan 3, 2021

Now TablePlus supports open connection with url schema, the URL format is the same as the macOS.

TablePlus.exe <URL>

@huyphams huyphams closed this as completed Jan 3, 2021
@rfay
Copy link

rfay commented Jan 4, 2021

@huyphams could you please give instructions about how to use this feature?

The result of this command on build 152:

`/c/Program Files/TablePlus/tableplus.exe' mysql://root:root@127.0.0.1:49165/db

is "file path is not existed", which BTW should be "File path does not exist" in English.

@huyphams
Copy link
Contributor Author

huyphams commented Jan 5, 2021

Hi @rfay I'm sorry, it was a bug and we have fixed it. I will build a patch later today.

@huyphams
Copy link
Contributor Author

huyphams commented Jan 5, 2021

Hi @rfay if you have a chance, please install this hotpatch: https://www.dropbox.com/s/eqztxlh2bai0lyd/TablePlusUpdate.exe?dl=0
Thanks

@rfay
Copy link

rfay commented Jan 5, 2021

I'm only working on this so that ddev can support TablePlus on Windows and WSL2 as well as macOS. So I don't need a hotpatch, I just need a supported release with this feature in it. If you could notify here when a release is out that has been tested, and provide info on how to use the feature, that would be fantastic. Thanks!

@huyphams
Copy link
Contributor Author

huyphams commented Jan 5, 2021

Yeah thanks, this fix will be included in the next update. We use the same URL format as the macOS version so you just copy the URL schema from the work that you've done before. If it does not work, it's our fault and we will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants