From 436da9514f85375310b64f4f292bbfcf081dfe87 Mon Sep 17 00:00:00 2001 From: Ashish Babish Gangaramani <44652143+ashishgangaramani@users.noreply.github.com> Date: Wed, 6 Nov 2024 06:10:32 -0500 Subject: [PATCH] Issue#917: Add a check to know if database is archived (#920) --- internal/cmd/db_shell.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/cmd/db_shell.go b/internal/cmd/db_shell.go index e6576415..d18e6a51 100644 --- a/internal/cmd/db_shell.go +++ b/internal/cmd/db_shell.go @@ -185,6 +185,9 @@ var shellCmd = &cobra.Command{ dbUrl = u.String() } + if db != nil && db.Sleeping { + return fmt.Errorf("Your DB might be archived. Please run `turso group unarchive " + db.Group + "` to unarchive it") + } connectionInfo := getConnectionInfo(urlString, db) schemaDb := false if db != nil {