func AddPollHook(hookPoint boil.HookPoint, pollHook PollHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		pollBeforeInsertHooks = append(pollBeforeInsertHooks, pollHook)
	case boil.BeforeUpdateHook:
		pollBeforeUpdateHooks = append(pollBeforeUpdateHooks, pollHook)
	case boil.BeforeDeleteHook:
		pollBeforeDeleteHooks = append(pollBeforeDeleteHooks, pollHook)
	case boil.BeforeUpsertHook:
		pollBeforeUpsertHooks = append(pollBeforeUpsertHooks, pollHook)
	case boil.AfterInsertHook:
		pollAfterInsertHooks = append(pollAfterInsertHooks, pollHook)
	case boil.AfterSelectHook:
		pollAfterSelectHooks = append(pollAfterSelectHooks, pollHook)
	case boil.AfterUpdateHook:
		pollAfterUpdateHooks = append(pollAfterUpdateHooks, pollHook)
	case boil.AfterDeleteHook:
		pollAfterDeleteHooks = append(pollAfterDeleteHooks, pollHook)
	case boil.AfterUpsertHook:
		pollAfterUpsertHooks = append(pollAfterUpsertHooks, pollHook)
	}
}
// AddPollHook registers your hook function for all future operations.
AddPollHook registers your hook function for all future operations.
// AddPollHook registers your hook function for all future operations .
func AddPollHook(hookPoint boil.HookPoint, pollHook PollHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		pollBeforeInsertHooks = append(pollBeforeInsertHooks, pollHook)
	case boil.BeforeUpdateHook:
		pollBeforeUpdateHooks = append(pollBeforeUpdateHooks, pollHook)
	case boil.BeforeDeleteHook:
		pollBeforeDeleteHooks = append(pollBeforeDeleteHooks, pollHook)
	case boil.BeforeUpsertHook:
		pollBeforeUpsertHooks = append(pollBeforeUpsertHooks, pollHook)
	case boil.AfterInsertHook:
		pollAfterInsertHooks = append(pollAfterInsertHooks, pollHook)
	case boil.AfterSelectHook:
		pollAfterSelectHooks = append(pollAfterSelectHooks, pollHook)
	case boil.AfterUpdateHook:
		pollAfterUpdateHooks = append(pollAfterUpdateHooks, pollHook)
	case boil.AfterDeleteHook:
		pollAfterDeleteHooks = append(pollAfterDeleteHooks, pollHook)
	case boil.AfterUpsertHook:
		pollAfterUpsertHooks = append(pollAfterUpsertHooks, pollHook)
	}
}
func AddPollHook ( hookPoint boil . HookPoint , pollHook PollHook ) { switch hookPoint { case boil . BeforeInsertHook : pollBeforeInsertHooks = append ( pollBeforeInsertHooks , pollHook ) case boil . BeforeUpdateHook : pollBeforeUpdateHooks = append ( pollBeforeUpdateHooks , pollHook ) case boil . BeforeDeleteHook : pollBeforeDeleteHooks = append ( pollBeforeDeleteHooks , pollHook ) case boil . BeforeUpsertHook : pollBeforeUpsertHooks = append ( pollBeforeUpsertHooks , pollHook ) case boil . AfterInsertHook : pollAfterInsertHooks = append ( pollAfterInsertHooks , pollHook ) case boil . AfterSelectHook : pollAfterSelectHooks = append ( pollAfterSelectHooks , pollHook ) case boil . AfterUpdateHook : pollAfterUpdateHooks = append ( pollAfterUpdateHooks , pollHook ) case boil . AfterDeleteHook : pollAfterDeleteHooks = append ( pollAfterDeleteHooks , pollHook ) case boil . AfterUpsertHook : pollAfterUpsertHooks = append ( pollAfterUpsertHooks , pollHook ) } }
AddPollHook registers your hook function for all future operations.
AddPollHook registers your hook function for all future operations .