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

Function init

pkg/sql/plpgsql/parser/parse.go:20–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18)
19
20func init() {
21 scanner.NewNumValFn = func(a constant.Value, s string, b bool) interface{} { return tree.NewNumVal(a, s, b) }
22 scanner.NewPlaceholderFn = func(s string) (interface{}, error) { return tree.NewPlaceholder(s) }
23 parser.ParseDoBlockFn = func(options tree.DoBlockOptions) (tree.DoBlockBody, error) {
24 doBlockBody, err := makeDoStmt(options)
25 if err != nil {
26 return nil, err
27 }
28 return doBlockBody, nil
29 }
30}
31
32// Parser wraps a scanner, parser and other utilities present in the parser
33// package.

Callers

nothing calls this directly

Calls 3

NewNumValFunction · 0.92
NewPlaceholderFunction · 0.92
makeDoStmtFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…