tursodatabase/turso-cli

If a DB is archived, prompt the user to wakeup if they try to use the shell

オープン

#917 opened on 2024/09/30

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Go (50 件のフォーク)github user discovery
good first issue

Repository metrics

Stars
 (302 個のスター)
PR merge metrics
 (平均マージ 4h 32m) (30d で 2 merged PRs)

説明

Current behaviour:

➜  ~ turso db list
NAME                 URL                                             ARCHIVED
charmed-rat-king     libsql://charmed-rat-king-avinassh.turso.io     Yes
renewed-cherry       libsql://renewed-cherry-avinassh.turso.io       Yes

➜  ~ turso db shell charmed-rat-king
Error: failed to connect to database. err: failed to WebSocket dial: expected handshake response status code 101 but got 502

I propose:

➜  ~ turso db shell charmed-rat-king
*Your DB might be archived. Please  run `turso group unarchive <group name>` to unarchive it*
Error: failed to connect to database. err: failed to WebSocket dial: expected handshake response status code 101 but got 502

コントリビューターガイド