dbx

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnWithAlias

func ColumnWithAlias(column string, alias ...string) string

ColumnWithAlias returns the column prefixed with the table alias if provided. For example: ColumnWithAlias("name", "u") returns "u.name".

func IsDuplicateKeyError

func IsDuplicateKeyError(err error) bool

IsDuplicateKeyError checks if the error is a duplicate key error. It first checks database-specific error codes for reliability, then falls back to message matching for compatibility.

func IsForeignKeyError

func IsForeignKeyError(err error) bool

IsForeignKeyError checks if the error is a foreign key constraint error. It first checks database-specific error codes for reliability, then falls back to message matching for compatibility.

Types

This section is empty.

Jump to

Keyboard shortcuts

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