driver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CodeUnique     = "ERR_UNIQUE"
	CodeForeignKey = "ERR_FOREIGN_KEY"
	CodeNotNull    = "ERR_NOT_NULL"
	CodeCheck      = "ERR_CHECK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailedErrorDecoder

type DetailedErrorDecoder interface {
	ErrorDecoder

	Detail(err error) (constraint, table, column string)
}

type Driver

type Driver interface {
	Name() string
	Open(dsn string) (*sql.DB, error)
	Dialect() dialect.Dialect
}

type ErrorDecoder

type ErrorDecoder interface {
	Classify(err error) (code string, ok bool)
}

Directories

Path Synopsis
mysql module
postgres module
sqlite module

Jump to

Keyboard shortcuts

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