MCPcopy Index your code
hub / github.com/apache/devlake / IsJsonOrderError

Method IsJsonOrderError

backend/impls/dalgorm/dalgorm.go:507–509  ·  view source on GitHub ↗

IsJsonOrderError checks if the error is related to postgres json ordering

(err error)

Source from the content-addressed store, hash-verified

505
506// IsJsonOrderError checks if the error is related to postgres json ordering
507func (d *Dalgorm) IsJsonOrderError(err error) bool {
508 return strings.Contains(err.Error(), "identify an ordering operator for type json")
509}
510
511// IsTableExist checks if table exists
512func (d *Dalgorm) IsTableExist(err error) bool {

Callers 1

convertGormErrorMethod · 0.95

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected