Improve output documentation.
This commit is contained in:
parent
5c4047b9a6
commit
612b670048
1 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
||||||
{{if hasPrimaryKey .Table.PKey -}}
|
{{if hasPrimaryKey .Table.PKey -}}
|
||||||
{{- $tableNameSingular := titleCaseSingular .Table.Name -}}
|
{{- $tableNameSingular := titleCaseSingular .Table.Name -}}
|
||||||
{{- $varNameSingular := camelCaseSingular .Table.Name -}}
|
{{- $varNameSingular := camelCaseSingular .Table.Name -}}
|
||||||
// Update updates a single {{$tableNameSingular}} record.
|
// Update a single {{$tableNameSingular}} record. It takes a whitelist of
|
||||||
// whitelist is a list of column_name's that should be updated.
|
// column_name's that should be updated. The primary key will be used to find
|
||||||
// Update will match against the primary key column to find the record to update.
|
// the record to update.
|
||||||
// WARNING: This Update method will NOT ignore nil members.
|
// WARNING: Update does NOT ignore nil members - only the whitelist can be used
|
||||||
// If you pass in nil members, those columnns will be set to null.
|
// to control the set of columns that will be saved.
|
||||||
func (o *{{$tableNameSingular}}) Update(whitelist ... string) error {
|
func (o *{{$tableNameSingular}}) Update(whitelist ... string) error {
|
||||||
return o.UpdateX(boil.GetDB(), whitelist...)
|
return o.UpdateX(boil.GetDB(), whitelist...)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue