func AddFactorHook(hookPoint boil.HookPoint, factorHook FactorHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		factorBeforeInsertHooks = append(factorBeforeInsertHooks, factorHook)
	case boil.BeforeUpdateHook:
		factorBeforeUpdateHooks = append(factorBeforeUpdateHooks, factorHook)
	case boil.BeforeDeleteHook:
		factorBeforeDeleteHooks = append(factorBeforeDeleteHooks, factorHook)
	case boil.BeforeUpsertHook:
		factorBeforeUpsertHooks = append(factorBeforeUpsertHooks, factorHook)
	case boil.AfterInsertHook:
		factorAfterInsertHooks = append(factorAfterInsertHooks, factorHook)
	case boil.AfterSelectHook:
		factorAfterSelectHooks = append(factorAfterSelectHooks, factorHook)
	case boil.AfterUpdateHook:
		factorAfterUpdateHooks = append(factorAfterUpdateHooks, factorHook)
	case boil.AfterDeleteHook:
		factorAfterDeleteHooks = append(factorAfterDeleteHooks, factorHook)
	case boil.AfterUpsertHook:
		factorAfterUpsertHooks = append(factorAfterUpsertHooks, factorHook)
	}
}
// AddFactorHook registers your hook function for all future operations.
AddFactorHook registers your hook function for all future operations.
// AddFactorHook registers your hook function for all future operations .
func AddFactorHook(hookPoint boil.HookPoint, factorHook FactorHook) {
	switch hookPoint {
	case boil.BeforeInsertHook:
		factorBeforeInsertHooks = append(factorBeforeInsertHooks, factorHook)
	case boil.BeforeUpdateHook:
		factorBeforeUpdateHooks = append(factorBeforeUpdateHooks, factorHook)
	case boil.BeforeDeleteHook:
		factorBeforeDeleteHooks = append(factorBeforeDeleteHooks, factorHook)
	case boil.BeforeUpsertHook:
		factorBeforeUpsertHooks = append(factorBeforeUpsertHooks, factorHook)
	case boil.AfterInsertHook:
		factorAfterInsertHooks = append(factorAfterInsertHooks, factorHook)
	case boil.AfterSelectHook:
		factorAfterSelectHooks = append(factorAfterSelectHooks, factorHook)
	case boil.AfterUpdateHook:
		factorAfterUpdateHooks = append(factorAfterUpdateHooks, factorHook)
	case boil.AfterDeleteHook:
		factorAfterDeleteHooks = append(factorAfterDeleteHooks, factorHook)
	case boil.AfterUpsertHook:
		factorAfterUpsertHooks = append(factorAfterUpsertHooks, factorHook)
	}
}
func AddFactorHook ( hookPoint boil . HookPoint , factorHook FactorHook ) { switch hookPoint { case boil . BeforeInsertHook : factorBeforeInsertHooks = append ( factorBeforeInsertHooks , factorHook ) case boil . BeforeUpdateHook : factorBeforeUpdateHooks = append ( factorBeforeUpdateHooks , factorHook ) case boil . BeforeDeleteHook : factorBeforeDeleteHooks = append ( factorBeforeDeleteHooks , factorHook ) case boil . BeforeUpsertHook : factorBeforeUpsertHooks = append ( factorBeforeUpsertHooks , factorHook ) case boil . AfterInsertHook : factorAfterInsertHooks = append ( factorAfterInsertHooks , factorHook ) case boil . AfterSelectHook : factorAfterSelectHooks = append ( factorAfterSelectHooks , factorHook ) case boil . AfterUpdateHook : factorAfterUpdateHooks = append ( factorAfterUpdateHooks , factorHook ) case boil . AfterDeleteHook : factorAfterDeleteHooks = append ( factorAfterDeleteHooks , factorHook ) case boil . AfterUpsertHook : factorAfterUpsertHooks = append ( factorAfterUpsertHooks , factorHook ) } }
AddFactorHook registers your hook function for all future operations.
AddFactorHook registers your hook function for all future operations .