func AddStateHook(hookPoint boil.HookPoint, stateHook StateHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		stateBeforeInsertHooks = append(stateBeforeInsertHooks, stateHook)
	case boil.BeforeUpdateHook:
		stateBeforeUpdateHooks = append(stateBeforeUpdateHooks, stateHook)
	case boil.BeforeDeleteHook:
		stateBeforeDeleteHooks = append(stateBeforeDeleteHooks, stateHook)
	case boil.BeforeUpsertHook:
		stateBeforeUpsertHooks = append(stateBeforeUpsertHooks, stateHook)
	case boil.AfterInsertHook:
		stateAfterInsertHooks = append(stateAfterInsertHooks, stateHook)
	case boil.AfterSelectHook:
		stateAfterSelectHooks = append(stateAfterSelectHooks, stateHook)
	case boil.AfterUpdateHook:
		stateAfterUpdateHooks = append(stateAfterUpdateHooks, stateHook)
	case boil.AfterDeleteHook:
		stateAfterDeleteHooks = append(stateAfterDeleteHooks, stateHook)
	case boil.AfterUpsertHook:
		stateAfterUpsertHooks = append(stateAfterUpsertHooks, stateHook)
	}
}
// AddStateHook registers your hook function for all future operations.
AddStateHook registers your hook function for all future operations.
// AddStateHook registers your hook function for all future operations .
func AddStateHook(hookPoint boil.HookPoint, stateHook StateHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		stateBeforeInsertHooks = append(stateBeforeInsertHooks, stateHook)
	case boil.BeforeUpdateHook:
		stateBeforeUpdateHooks = append(stateBeforeUpdateHooks, stateHook)
	case boil.BeforeDeleteHook:
		stateBeforeDeleteHooks = append(stateBeforeDeleteHooks, stateHook)
	case boil.BeforeUpsertHook:
		stateBeforeUpsertHooks = append(stateBeforeUpsertHooks, stateHook)
	case boil.AfterInsertHook:
		stateAfterInsertHooks = append(stateAfterInsertHooks, stateHook)
	case boil.AfterSelectHook:
		stateAfterSelectHooks = append(stateAfterSelectHooks, stateHook)
	case boil.AfterUpdateHook:
		stateAfterUpdateHooks = append(stateAfterUpdateHooks, stateHook)
	case boil.AfterDeleteHook:
		stateAfterDeleteHooks = append(stateAfterDeleteHooks, stateHook)
	case boil.AfterUpsertHook:
		stateAfterUpsertHooks = append(stateAfterUpsertHooks, stateHook)
	}
}
func AddStateHook ( hookPoint boil . HookPoint , stateHook StateHook ) { switch hookPoint { case boil . BeforeInsertHook : stateBeforeInsertHooks = append ( stateBeforeInsertHooks , stateHook ) case boil . BeforeUpdateHook : stateBeforeUpdateHooks = append ( stateBeforeUpdateHooks , stateHook ) case boil . BeforeDeleteHook : stateBeforeDeleteHooks = append ( stateBeforeDeleteHooks , stateHook ) case boil . BeforeUpsertHook : stateBeforeUpsertHooks = append ( stateBeforeUpsertHooks , stateHook ) case boil . AfterInsertHook : stateAfterInsertHooks = append ( stateAfterInsertHooks , stateHook ) case boil . AfterSelectHook : stateAfterSelectHooks = append ( stateAfterSelectHooks , stateHook ) case boil . AfterUpdateHook : stateAfterUpdateHooks = append ( stateAfterUpdateHooks , stateHook ) case boil . AfterDeleteHook : stateAfterDeleteHooks = append ( stateAfterDeleteHooks , stateHook ) case boil . AfterUpsertHook : stateAfterUpsertHooks = append ( stateAfterUpsertHooks , stateHook ) } }
AddStateHook registers your hook function for all future operations.
AddStateHook registers your hook function for all future operations .