tursodatabase/turso-cli

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

開放

#606 建立於 2023年8月28日

 (0 則留言) (0 個反應) (0 位負責人)Go (50 個分叉)github user discovery
enhancementgood first issuehelp wanted

倉庫指標

星標
 (302 顆星)
PR 合併指標
 (平均合併 4小時 32分鐘) (30 天內合併 2 個 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.

貢獻者指南