sqlboiler/boil/hooks.go
Patrick O'brien 2a5630ce3e Add before/after select/delete to hooks generation
* Add tests for all hooks
2016-08-28 21:13:45 +10:00

18 lines
319 B
Go

package boil
// HookPoint is the point in time at which we hook
type HookPoint int
// the hook point constants
const (
HookAfterInsert HookPoint = iota + 1
HookAfterSelect
HookAfterUpdate
HookAfterDelete
HookAfterUpsert
HookBeforeInsert
HookBeforeSelect
HookBeforeUpdate
HookBeforeDelete
HookBeforeUpsert
)