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

Function toPointer

internal/engine/postgresql/catalog.go:7–9  ·  view source on GitHub ↗

toPointer converts an int to a pointer without a temporary variable at the call-site, and is used by the generated schemas

(x int)

Source from the content-addressed store, hash-verified

5// toPointer converts an int to a pointer without a temporary
6// variable at the call-site, and is used by the generated schemas
7func toPointer(x int) *int {
8 return &x
9}
10
11func NewCatalog() *catalog.Catalog {
12 c := catalog.New("public")

Callers 2

genPGCatalogFunction · 0.85
genInformationSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected