tursodatabase/turso-cli

`turso db shell` woes because of mismatch between database name and URL

Open

#606 创建于 2023年8月28日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Go (50 fork)github user discovery
enhancementgood first issuehelp wanted

仓库指标

Star
 (302 star)
PR 合并指标
 (PR 指标待抓取)

描述

If I create a database with the name hello, the URL starts with hello-penberg making the following error likely:

$ turso db shell hello-penberg 
Error: database hello-penberg not found. List known databases using turso db list

Let's either (1) add an alias for hello-penberg to hello (but tell the user that we're using the alias) or (2) at minimum improve the error message to use word distance algorithm to suggest the most likely name.

Reported by Jan Piotrowski.

贡献者指南