Documentation
¶
Index ¶
- func BatchProcessing[T any](ctx context.Context, batchSize int, query *gorm.DB, ...) error
- func IsGormErrRecordNotFound(err error) bool
- func TemporalDoNotRetry(err error, args ...string) error
- func TemporalGormError(err error, args ...string) error
- func ToHstore(val map[string]string) pgtype.Hstore
- func ToJSON(val string) []byte
- func ToPtrStringMap(val map[string]string) map[string]*string
- func ToStringMap(val pgtype.Hstore) map[string]string
- func ToStringMapAny(val pgtype.Hstore) map[string]any
- type JSONBQuerier
- type JSONBQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchProcessing ¶
func IsGormErrRecordNotFound ¶
func TemporalDoNotRetry ¶
func TemporalGormError ¶
Types ¶
type JSONBQuerier ¶
JSONBQuerier helps build JSONB queries
func NewJSONBQuery ¶
func NewJSONBQuery(db *gorm.DB) *JSONBQuerier
NewJSONBQuery creates a new JSONB query helper
func (*JSONBQuerier) WhereJSON ¶
func (jq *JSONBQuerier) WhereJSON(queryArgs JSONBQuery) *gorm.DB
WhereJSON adds a WHERE condition for JSONB field
func (*JSONBQuerier) WhereJSONPath ¶
func (jq *JSONBQuerier) WhereJSONPath(field string, path []string, operator string, value interface{}) *gorm.DB
WhereJSONPath queries nested JSON paths
Click to show internal directories.
Click to hide internal directories.