MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / isLiteral

Function isLiteral

cmd/cql-proxy/resolver/resolver.go:559–569  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

557}
558
559func isLiteral(v interface{}) bool {
560 switch v.(type) {
561 case string,
562 int, int8, int16, int32, int64,
563 uint, uint8, uint16, uint32, uint64,
564 float32, float64:
565 return true
566 }
567
568 return false
569}
570
571func getNonEmptyArrayOfObjects(v interface{}) (res []map[string]interface{}, err error) {
572 arr, ok := v.([]interface{})

Callers 3

ResolveFieldConditionFunction · 0.85
ResolveUpdateFunction · 0.85
ResolveOrderByFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected