(source string, target string)
| 209 | } |
| 210 | |
| 211 | func renameSQLiteCompanion(source string, target string) error { |
| 212 | if err := os.Rename(source, target); err != nil { |
| 213 | if errors.Is(err, os.ErrNotExist) { |
| 214 | return nil |
| 215 | } |
| 216 | return err |
| 217 | } |
| 218 | return nil |
| 219 | } |
| 220 | |
| 221 | // ShouldRecoverSQLite reports whether the open error indicates recoverable corruption. |
| 222 | func ShouldRecoverSQLite(err error) bool { |
no test coverage detected