Updated Modifiers (markdown)

Vinícius Garcia 2022-12-17 15:55:16 -03:00
parent afefbfa118
commit 3a6fbedac9

@ -52,7 +52,7 @@ Modifiers improve on the `Valuer`/`Scanner` feature provided by the standard lib
- `timeNowUTC/skipUpdates`: Does the same as the above but only on insertions, during Updates attributes marked with this modifier will be completely ignored. This is useful for `CreatedAt` fields where you only want them to be set once when first creating the record.
- `skipUpdates`: Will ignore fields on updates.
- `skipInserts`: Will ignore fields on inserts.
- `nullable`: Modifiers the default behavior of ignoring nil pointers during Updates and Insertions, i.e. it makes it possible to set database columns to NULL, which was not possible before. On KSQL V2 this modifier might be removed in favor of an `Update()` function whose default behavior is to not ignore NULL fields.
- `nullable`: Modifies the default behavior of ignoring nil pointers during Updates and Insertions, i.e. it makes it possible to set database columns to NULL, which was not possible before. On KSQL V2 this modifier might be removed in favor of an `Update()` function whose default behavior is to not ignore NULL fields.
### Registering new Modifiers