(err error)
| 16 | } |
| 17 | |
| 18 | func IsDuckDBTableAlreadyExistsError(err error) bool { |
| 19 | return IsDuckDBCatalogError(err) && |
| 20 | (strings.Contains(err.Error(), "Table with name") || strings.Contains(err.Error(), "Could not rename")) && strings.Contains(err.Error(), "already exists") |
| 21 | } |
| 22 | |
| 23 | func IsDuckDBTableNotFoundError(err error) bool { |
| 24 | return IsDuckDBCatalogError(err) && strings.Contains(err.Error(), "Table with name") && strings.Contains(err.Error(), "does not exist") |
no test coverage detected