func FactorPositionExists(ctx context.Context, exec boil.ContextExecutor, factorPositionID int64) (bool, error) {
	var exists bool
	sql := "select exists(select 1 from \"factor_positions\" where \"factor_position_id\"=$1 limit 1)"

	if boil.DebugMode {
		fmt.Fprintln(boil.DebugWriter, sql)
		fmt.Fprintln(boil.DebugWriter, factorPositionID)
	}

	row := exec.QueryRowContext(ctx, sql, factorPositionID)

	err := row.Scan(&exists)
	if err != nil {
		return false, errors.Wrap(err, "models: unable to check if factor_positions exists")
	}

	return exists, nil
}
// FactorPositionExists checks if the FactorPosition row exists.
FactorPositionExists checks if the FactorPosition row exists.
// FactorPositionExists checks if the FactorPosition row exists .
func FactorPositionExists(ctx context.Context, exec boil.ContextExecutor, factorPositionID int64) (bool, error) {
	var exists bool
	sql := "select exists(select 1 from \"factor_positions\" where \"factor_position_id\"=$1 limit 1)"
	if boil.DebugMode {
		fmt.Fprintln(boil.DebugWriter, sql)
		fmt.Fprintln(boil.DebugWriter, factorPositionID)
	}
	row := exec.QueryRowContext(ctx, sql, factorPositionID)
	err := row.Scan(&exists)
	if err != nil {
		return false, errors.Wrap(err, "models: unable to check if factor_positions exists")
	}
	return exists, nil
}
func FactorPositionExists ( ctx context . Context , exec boil . ContextExecutor , factorPositionID int64 ) ( bool , error ) { var exists bool sql := " \" \" \" \" " if boil . DebugMode { fmt . Fprintln ( boil . DebugWriter , sql ) fmt . Fprintln ( boil . DebugWriter , factorPositionID ) } row := exec . QueryRowContext ( ctx , sql , factorPositionID ) err := row . Scan ( & exists ) if err != nil { return false , errors . Wrap ( err , " " ) } return exists , nil }
FactorPositionExists checks if the FactorPosition row exists.
FactorPositionExists checks if the FactorPosition row exists .