func PollsLabelExists(ctx context.Context, exec boil.ContextExecutor, pollLabelID int64) (bool, error) {
	var exists bool
	sql := "select exists(select 1 from \"polls_labels\" where \"poll_label_id\"=$1 limit 1)"

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

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

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

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