MCPcopy Create free account
hub / github.com/compozy/agh / renameSQLiteCompanion

Function renameSQLiteCompanion

internal/store/sqlite.go:211–219  ·  view source on GitHub ↗
(source string, target string)

Source from the content-addressed store, hash-verified

209}
210
211func 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.
222func ShouldRecoverSQLite(err error) bool {

Callers 1

recoverSQLiteDatabaseFunction · 0.85

Calls 1

IsMethod · 0.45

Tested by

no test coverage detected