tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
224 stars 37 forks source link

`db replicate` shows wrong URL and database name #142

Closed penberg closed 1 year ago

penberg commented 1 year ago

The db replicate show the logical database URL:

penberg@vonneumann turso % go run main.go db create
Created database equal-fairchild to Warsaw, Poland (waw) in 5 seconds.

HTTP connection string:

   https://penberg:59r361aV40ECZL78@equal-fairchild-penberg.turso.io

You can start an interactive SQL shell with:

   turso db shell equal-fairchild

penberg@vonneumann turso % go run main.go db replicate equal-fairchild ams
Replicated database equal-fairchild to Amsterdam, Netherlands (ams) in 4 seconds.

HTTP connection string:

   https://penberg:59r361aV40ECZL78@equal-fairchild-penberg.turso.io

You can start an interactive SQL shell with:

   turso db shell https://penberg:59r361aV40ECZL78@equal-fairchild-penberg.turso.io
penberg commented 1 year ago

This is fixed by @athoscouto in one of his many commits.