MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / NewCatalog

Function NewCatalog

internal/engine/postgresql/catalog.go:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11func NewCatalog() *catalog.Catalog {
12 c := catalog.New("public")
13 c.Schemas = append(c.Schemas, pgTemp())
14 c.Schemas = append(c.Schemas, genPGCatalog())
15 c.Schemas = append(c.Schemas, genInformationSchema())
16 c.SearchPath = []string{"pg_catalog"}
17 c.LoadExtension = loadExtension
18 return c
19}

Callers 2

NewCompilerFunction · 0.92
TestUpdateErrorsFunction · 0.70

Calls 4

NewFunction · 0.92
pgTempFunction · 0.85
genPGCatalogFunction · 0.85
genInformationSchemaFunction · 0.85

Tested by 1

TestUpdateErrorsFunction · 0.56