func AddPollsStateHook(hookPoint boil.HookPoint, pollsStateHook PollsStateHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		pollsStateBeforeInsertHooks = append(pollsStateBeforeInsertHooks, pollsStateHook)
	case boil.BeforeUpdateHook:
		pollsStateBeforeUpdateHooks = append(pollsStateBeforeUpdateHooks, pollsStateHook)
	case boil.BeforeDeleteHook:
		pollsStateBeforeDeleteHooks = append(pollsStateBeforeDeleteHooks, pollsStateHook)
	case boil.BeforeUpsertHook:
		pollsStateBeforeUpsertHooks = append(pollsStateBeforeUpsertHooks, pollsStateHook)
	case boil.AfterInsertHook:
		pollsStateAfterInsertHooks = append(pollsStateAfterInsertHooks, pollsStateHook)
	case boil.AfterSelectHook:
		pollsStateAfterSelectHooks = append(pollsStateAfterSelectHooks, pollsStateHook)
	case boil.AfterUpdateHook:
		pollsStateAfterUpdateHooks = append(pollsStateAfterUpdateHooks, pollsStateHook)
	case boil.AfterDeleteHook:
		pollsStateAfterDeleteHooks = append(pollsStateAfterDeleteHooks, pollsStateHook)
	case boil.AfterUpsertHook:
		pollsStateAfterUpsertHooks = append(pollsStateAfterUpsertHooks, pollsStateHook)
	}
}
// AddPollsStateHook registers your hook function for all future operations.
AddPollsStateHook registers your hook function for all future operations.
// AddPollsStateHook registers your hook function for all future operations .
func AddPollsStateHook(hookPoint boil.HookPoint, pollsStateHook PollsStateHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		pollsStateBeforeInsertHooks = append(pollsStateBeforeInsertHooks, pollsStateHook)
	case boil.BeforeUpdateHook:
		pollsStateBeforeUpdateHooks = append(pollsStateBeforeUpdateHooks, pollsStateHook)
	case boil.BeforeDeleteHook:
		pollsStateBeforeDeleteHooks = append(pollsStateBeforeDeleteHooks, pollsStateHook)
	case boil.BeforeUpsertHook:
		pollsStateBeforeUpsertHooks = append(pollsStateBeforeUpsertHooks, pollsStateHook)
	case boil.AfterInsertHook:
		pollsStateAfterInsertHooks = append(pollsStateAfterInsertHooks, pollsStateHook)
	case boil.AfterSelectHook:
		pollsStateAfterSelectHooks = append(pollsStateAfterSelectHooks, pollsStateHook)
	case boil.AfterUpdateHook:
		pollsStateAfterUpdateHooks = append(pollsStateAfterUpdateHooks, pollsStateHook)
	case boil.AfterDeleteHook:
		pollsStateAfterDeleteHooks = append(pollsStateAfterDeleteHooks, pollsStateHook)
	case boil.AfterUpsertHook:
		pollsStateAfterUpsertHooks = append(pollsStateAfterUpsertHooks, pollsStateHook)
	}
}
func AddPollsStateHook ( hookPoint boil . HookPoint , pollsStateHook PollsStateHook ) { switch hookPoint { case boil . BeforeInsertHook : pollsStateBeforeInsertHooks = append ( pollsStateBeforeInsertHooks , pollsStateHook ) case boil . BeforeUpdateHook : pollsStateBeforeUpdateHooks = append ( pollsStateBeforeUpdateHooks , pollsStateHook ) case boil . BeforeDeleteHook : pollsStateBeforeDeleteHooks = append ( pollsStateBeforeDeleteHooks , pollsStateHook ) case boil . BeforeUpsertHook : pollsStateBeforeUpsertHooks = append ( pollsStateBeforeUpsertHooks , pollsStateHook ) case boil . AfterInsertHook : pollsStateAfterInsertHooks = append ( pollsStateAfterInsertHooks , pollsStateHook ) case boil . AfterSelectHook : pollsStateAfterSelectHooks = append ( pollsStateAfterSelectHooks , pollsStateHook ) case boil . AfterUpdateHook : pollsStateAfterUpdateHooks = append ( pollsStateAfterUpdateHooks , pollsStateHook ) case boil . AfterDeleteHook : pollsStateAfterDeleteHooks = append ( pollsStateAfterDeleteHooks , pollsStateHook ) case boil . AfterUpsertHook : pollsStateAfterUpsertHooks = append ( pollsStateAfterUpsertHooks , pollsStateHook ) } }
AddPollsStateHook registers your hook function for all future operations.
AddPollsStateHook registers your hook function for all future operations .