MCPcopy Create free account
hub / github.com/apecloud/myduckserver / IsDuckDBViewNotFoundError

Function IsDuckDBViewNotFoundError

catalog/errors.go:27–29  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

25}
26
27func IsDuckDBViewNotFoundError(err error) bool {
28 return IsDuckDBCatalogError(err) && strings.Contains(err.Error(), "View with name") && strings.Contains(err.Error(), "does not exist")
29}
30
31// ERROR 1105 (HY000): unknown error: Catalog Error: SET schema: No catalog + schema named "mysql.db0" found.
32func IsDuckDBSetSchemaNotFoundError(err error) bool {

Callers 1

DropViewMethod · 0.85

Calls 1

IsDuckDBCatalogErrorFunction · 0.85

Tested by

no test coverage detected