db

package
v1.0.1139 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 11 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorDetails

func ErrorDetails(err error) error

func IsDBError added in v1.0.731

func IsDBError(err error) bool

func IsDeadlockError

func IsDeadlockError(err error) bool

func IsForeignKeyError

func IsForeignKeyError(err error) bool

func NewOopsPlugin added in v1.0.731

func NewOopsPlugin() gorm.Plugin

func PGMajorVersion added in v1.0.914

func PGMajorVersion(db *gorm.DB) (int, error)

PGMajorVersion retrieves the PostgreSQL major version

func ReadTable added in v1.0.983

func ReadTable(db *gorm.DB, tableName string, clauses ...clause.Expression) ([]map[string]any, error)

ReadTable reads a postgres table when the table model isn't known.

func ScanRows added in v1.0.1114

func ScanRows[T ~map[string]any](rows *sql.Rows) ([]T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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