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 and avinassh committed Dec 2, 2024
1 parent 0275279 commit d06611f
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 d06611f

Please sign in to comment.