Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlerr

package
v1.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package sqlerr classifies the errors a sqlconnect DB returns, so that a caller can act on them without importing the warehouse drivers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsObjectNotFound

func IsObjectNotFound(err error) bool

IsObjectNotFound reports whether err, returned by a sqlconnect DB, says that the table or view, schema, database or catalog a statement addressed does not exist. A missing column or function and a permission failure are not reported, except where the engine does not tell them apart: Snowflake answers "does not exist or not authorized" (2003) and SQL Server "Invalid object name" (208) for an object the role cannot see as well. ClickHouse errors carry their own codes and are not inspected here; see clickhousequery.Describe.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL