gen-builtins

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

gen-builtins reads a JSON builtin catalog (produced by extract-builtins) and emits a Go source file containing builtinsregistry.Register() calls for each function. The generated code registers metadata-only stubs with no Fn closures, enabling function-name validation and overload resolution without a live database.

Usage:

go run ./cmd/gen-builtins \
  -input  internal/builtinstubs/testdata/crdb_builtins_v26.2.json \
  -output internal/builtinstubs/stubs_v26_2_gen.go \
  -version v26.2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL