sqlerr

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exists = errors.New("already exists")
View Source
var NotFound = errors.New("does not exist")
View Source
var NotUnique = errors.New("is not unique")

Functions

This section is empty.

Types

type Error

type Error struct {
	Err      error
	Code     string
	Message  string
	Location int
	Line     int
	Column   int
}

func ColumnExists

func ColumnExists(rel, col string) *Error

func ColumnNotFound

func ColumnNotFound(rel, col string) *Error

func FunctionNotFound

func FunctionNotFound(fun string) *Error

func FunctionNotUnique

func FunctionNotUnique(fn string) *Error

func RelationExists

func RelationExists(rel string) *Error

func RelationNotFound

func RelationNotFound(rel string) *Error

func SchemaExists

func SchemaExists(name string) *Error

func SchemaNotFound

func SchemaNotFound(sch string) *Error

func TypeExists

func TypeExists(typ string) *Error

func TypeNotFound

func TypeNotFound(typ string) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Jump to

Keyboard shortcuts

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