@@ -13,7 +13,7 @@ import (
1313func buildEnums (req * plugin.CodeGenRequest ) []Enum {
1414 var enums []Enum
1515 for _ , schema := range req .Catalog .Schemas {
16- if schema .Name == "pg_catalog" {
16+ if schema .Name == "pg_catalog" || schema . Name == "information_schema" {
1717 continue
1818 }
1919 for _ , enum := range schema .Enums {
@@ -52,7 +52,7 @@ func buildEnums(req *plugin.CodeGenRequest) []Enum {
5252func buildStructs (req * plugin.CodeGenRequest ) []Struct {
5353 var structs []Struct
5454 for _ , schema := range req .Catalog .Schemas {
55- if schema .Name == "pg_catalog" {
55+ if schema .Name == "pg_catalog" || schema . Name == "information_schema" {
5656 continue
5757 }
5858 for _ , table := range schema .Tables {
@@ -253,8 +253,9 @@ func buildQueries(req *plugin.CodeGenRequest, structs []Struct) ([]Query, error)
253253
254254// It's possible that this method will generate duplicate JSON tag values
255255//
256- // Columns: count, count, count_2
257- // Fields: Count, Count_2, Count2
256+ // Columns: count, count, count_2
257+ // Fields: Count, Count_2, Count2
258+ //
258259// JSON tags: count, count_2, count_2
259260//
260261// This is unlikely to happen, so don't fix it yet
0 commit comments