Documentation ¶
Index ¶
- func DeletedByFromClaim(d *gorm.DB) (map[string]interface{}, bool)
- func Paginate(paging Paging) func(db *gorm.DB) *gorm.DB
- func SoftDeleteClauseFromClaim(d *gorm.DB, now time.Time) (map[string]interface{}, bool)
- func SoftDeleteClauseFromClaimWithDefaultTime(d *gorm.DB) (map[string]interface{}, bool)
- func UpdateWithClaimInfo(d *gorm.DB, data map[string]interface{}) map[string]interface{}
- func WithDeletedAtNull(table string) func(d *gorm.DB) *gorm.DB
- func WithID(id interface{}) func(d *gorm.DB) *gorm.DB
- func WithUserID() func(d *gorm.DB) *gorm.DB
- type Paging
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletedByFromClaim ¶
DeletedByFromClaim for the hook after deleting record.
func SoftDeleteClauseFromClaim ¶
SoftDeleteClauseFromClaim for Bulk SoftDelete
func SoftDeleteClauseFromClaimWithDefaultTime ¶
SoftDeleteClauseFromClaimWithDefaultTime for Bulk SoftDelete with Now
func UpdateWithClaimInfo ¶
UpdateWithClaimInfo add update office_id and updated_by from context
func WithDeletedAtNull ¶
WithDeletedAtNull where code = <input value>
Types ¶
Click to show internal directories.
Click to hide internal directories.