mysql_callback

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

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