MCPcopy Index your code
hub / github.com/aarondl/sqlboiler / appendArrayQuotedBytes

Function appendArrayQuotedBytes

types/array.go:1149–1164  ·  view source on GitHub ↗
(b, v []byte)

Source from the content-addressed store, hash-verified

1147}
1148
1149func appendArrayQuotedBytes(b, v []byte) []byte {
1150 b = append(b, '"')
1151 for {
1152 i := bytes.IndexAny(v, `"\`)
1153 if i < 0 {
1154 b = append(b, v...)
1155 break
1156 }
1157 if i > 0 {
1158 b = append(b, v[:i]...)
1159 }
1160 b = append(b, '\\', v[i])
1161 v = v[i+1:]
1162 }
1163 return append(b, '"')
1164}
1165
1166func appendValue(b []byte, v driver.Value) ([]byte, error) {
1167 return append(b, encode(nil, v, 0)...), nil

Callers 2

ValueMethod · 0.85
appendArrayElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…