From bce2e69c86245142d28c13270c4e8fadf13a726f Mon Sep 17 00:00:00 2001 From: fkmy Date: Fri, 10 May 2024 15:26:11 +0900 Subject: [PATCH 1/3] fix typo `colums`-> `columns` --- config/config.go | 2 +- schema/schema.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index a632f723f..3de9102b9 100644 --- a/config/config.go +++ b/config/config.go @@ -862,7 +862,7 @@ func detectCardinality(s *schema.Schema) error { // parent if r.ParentCardinality == schema.UnknownCardinality { - // whether the child colums are nullable or not. + // whether the child columns are nullable or not. nullable := true for _, c := range r.Columns { if !c.Nullable { diff --git a/schema/schema.go b/schema/schema.go index e1af37448..e435881b1 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -223,7 +223,7 @@ func (s *Schema) FindTableByName(name string) (*Table, error) { return nil, errors.Errorf("not found table '%s'", name) } -// FindRelation find relation by columns and parent colums +// FindRelation find relation by columns and parent columns func (s *Schema) FindRelation(cs, pcs []*Column) (*Relation, error) { L: for _, r := range s.Relations { From 36efd64b480fe4cb274a25fd754d38865bf846d8 Mon Sep 17 00:00:00 2001 From: fkmy Date: Fri, 10 May 2024 15:34:12 +0900 Subject: [PATCH 2/3] fix typo `genarate`-> `generate` --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index a4c24b310..7af5dd0c6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -40,7 +40,7 @@ import ( // adjust is a flag on whethre to adjust the notation width of the table var adjust bool -// force is a flag on whether to force genarate +// force is a flag on whether to force generate var force bool // sort is a flag on whether to sort tables, columns, and more From c97399fa7536a4bbab89433f135c3e15d51af21a Mon Sep 17 00:00:00 2001 From: fkmy Date: Fri, 10 May 2024 15:35:41 +0900 Subject: [PATCH 3/3] fix typo `whethre`-> `whether` --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 7af5dd0c6..7e7a626c1 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -37,7 +37,7 @@ import ( "github.com/spf13/cobra" ) -// adjust is a flag on whethre to adjust the notation width of the table +// adjust is a flag on whether to adjust the notation width of the table var adjust bool // force is a flag on whether to force generate