dbutil

package
v0.0.0-...-99214e8 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCheckViolation

func IsCheckViolation(err error, constraint string) bool

IsCheckViolation checks the value validation violation error.

func IsForeignKeyViolation

func IsForeignKeyViolation(err error, constraint string) bool

IsForeignKeyViolation checks the foreign key violation error.

func IsInvalidUUID

func IsInvalidUUID(err error) bool

IsInvalidUUID checks the UUID format error.

func IsUniqueViolation

func IsUniqueViolation(err error, constraint string) bool

IsUniqueViolation checks the unique violation error.

func Migrate

func Migrate(db *sql.DB, migrations embed.FS) (func() error, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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