Documentation
¶
Index ¶
- func ErrorDetails(err error) error
- func IsDBError(err error) bool
- func IsDeadlockError(err error) bool
- func IsForeignKeyError(err error) bool
- func NewOopsPlugin() gorm.Plugin
- func PGMajorVersion(db *gorm.DB) (int, error)
- func ReadTable(db *gorm.DB, tableName string, clauses ...clause.Expression) ([]map[string]any, error)
- func ScanRows[T ~map[string]any](rows *sql.Rows) ([]T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorDetails ¶
func IsDeadlockError ¶
func IsForeignKeyError ¶
func NewOopsPlugin ¶ added in v1.0.731
func PGMajorVersion ¶ added in v1.0.914
PGMajorVersion retrieves the PostgreSQL major version
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.