1
0

catalog.go 344 B

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