Skip to content

Commit

Permalink
Issue#917: Add a check to know if database is archived (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishgangaramani authored Nov 6, 2024
1 parent b332d6e commit 436da95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/cmd/db_shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 436da95

Please sign in to comment.