MCPcopy
hub / github.com/sqlc-dev/sqlc / Pluck

Function Pluck

internal/source/code.go:54–58  ·  view source on GitHub ↗
(source string, location, length int)

Source from the content-addressed store, hash-verified

52}
53
54func Pluck(source string, location, length int) (string, error) {
55 head := location
56 tail := location + length
57 return source[head:tail], nil
58}
59
60func Mutate(raw string, a []Edit) (string, error) {
61 if len(a) == 0 {

Callers 1

parseQueryMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected