mysql_callback

package
v0.0.0-...-dc24fe2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteCallback

func DeleteCallback(scope *gorm.Scope)

DeleteCallback used to delete data from database or set DeletedTime to current time and is_del = 1(when using with soft delete).

func UpdateTimeStampForCreateCallback

func UpdateTimeStampForCreateCallback(scope *gorm.Scope)

UpdateTimeStampForCreateCallback sets `CreateTime`, `ModifyTime` when creating.

func UpdateTimeStampForUpdateCallback

func UpdateTimeStampForUpdateCallback(scope *gorm.Scope)

UpdateTimeStampForUpdateCallback sets `ModifyTime` when updating.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL