MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / init

Function init

pkg/sql/parser/parse.go:31–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29)
30
31func init() {
32 scanner.NewNumValFn = func(a constant.Value, s string, b bool) interface{} { return tree.NewNumVal(a, s, b) }
33 scanner.NewPlaceholderFn = func(s string) (interface{}, error) { return tree.NewPlaceholder(s) }
34}
35
36// Parser wraps a scanner, parser and other utilities present in the parser
37// package.

Callers

nothing calls this directly

Calls 2

NewNumValFunction · 0.92
NewPlaceholderFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…