From 84dbda5948477b8324fd0836204cd25427fddb38 Mon Sep 17 00:00:00 2001 From: go-jet Date: Fri, 13 May 2022 13:46:41 +0200 Subject: [PATCH] Improve doc. --- internal/jet/column_list.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/internal/jet/column_list.go b/internal/jet/column_list.go index 3ff829c..2fdb358 100644 --- a/internal/jet/column_list.go +++ b/internal/jet/column_list.go @@ -4,6 +4,10 @@ package jet type ColumnList []ColumnExpression // SET creates column assigment for each column in column list. expression should be created by ROW function +// Link.UPDATE(). +// SET(Link.MutableColumns.SET(ROW(String("github.com"), Bool(false))). +// WHERE(Link.ID.EQ(Int(0))) +// func (cl ColumnList) SET(expression Expression) ColumnAssigment { return columnAssigmentImpl{ column: cl, @@ -11,7 +15,9 @@ func (cl ColumnList) SET(expression Expression) ColumnAssigment { } } -// Except will create new column list in which columns contained in excluded column names are removed +// Except will create new column list in which columns contained in list of excluded column names are removed +// Address.AllColumns.Except(Address.PostalCode, Address.Phone) +// func (cl ColumnList) Except(excludedColumns ...Column) ColumnList { excludedColumnList := UnwidColumnList(excludedColumns) excludedColumnNames := map[string]bool{}