catalog.go 331 B

12345678910111213141516
  1. package dolphin
  2. import (
  3. "github.com/kyleconroy/sqlc/internal/sql/catalog"
  4. )
  5. func NewCatalog() *catalog.Catalog {
  6. def := "public" // TODO: What is the default database for MySQL?
  7. return &catalog.Catalog{
  8. DefaultSchema: def,
  9. Schemas: []*catalog.Schema{
  10. defaultSchema(def),
  11. },
  12. Extensions: map[string]struct{}{},
  13. }
  14. }