diff --git a/generator/template/process.go b/generator/template/process.go index 01ba1b1..102c7c0 100644 --- a/generator/template/process.go +++ b/generator/template/process.go @@ -80,10 +80,14 @@ func processTableSQLBuilderSetSchema(dirPath string, schemaMetadata metadata.Sch builders = append(builders, table) if table.Skip { - return + continue } } + if len(builders) == 0 { + return + } + fmt.Println("Generating global `SetSchema` method...") schemaIdentifier := utils.ToGoIdentifier(schemaMetadata.Name)