MCPcopy Create free account
hub / github.com/temporalio/temporal / isTableExistsError

Function isTableExistsError

common/persistence/sql/sqlplugin/sqlite/driver.go:28–35  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

26}
27
28func isTableExistsError(err error) bool {
29 var sqlErr *sqlite.Error
30 if errors.As(err, &sqlErr) {
31 return sqlTableExistsRegex.MatchString(sqlErr.Error())
32 }
33
34 return false
35}

Callers 1

createDBConnectionMethod · 0.85

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected