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

Function NewCatalog

internal/engine/sqlite/catalog.go:5–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "github.com/sqlc-dev/sqlc/internal/sql/catalog"
4
5func NewCatalog() *catalog.Catalog {
6 def := "main"
7 return &catalog.Catalog{
8 DefaultSchema: def,
9 Schemas: []*catalog.Schema{
10 defaultSchema(def),
11 },
12 Extensions: map[string]struct{}{},
13 }
14}
15
16func newTestCatalog() *catalog.Catalog {
17 return catalog.New("main")

Callers 1

NewCompilerFunction · 0.92

Calls 1

defaultSchemaFunction · 0.70

Tested by

no test coverage detected