func (q nameAfterLastNameQuery) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) {
	if q.Query == nil {
		return 0, errors.New("models: no nameAfterLastNameQuery provided for delete all")
	}

	queries.SetDelete(q.Query)

	result, err := q.Query.ExecContext(ctx, exec)
	if err != nil {
		return 0, errors.Wrap(err, "models: unable to delete all from name_after_last_name")
	}

	rowsAff, err := result.RowsAffected()
	if err != nil {
		return 0, errors.Wrap(err, "models: failed to get rows affected by deleteall for name_after_last_name")
	}

	return rowsAff, nil
}
// DeleteAll deletes all matching rows.
DeleteAll deletes all matching rows.
// DeleteAll deletes all matching rows .
func (q nameAfterLastNameQuery) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error) {
	if q.Query == nil {
		return 0, errors.New("models: no nameAfterLastNameQuery provided for delete all")
	}
	queries.SetDelete(q.Query)
	result, err := q.Query.ExecContext(ctx, exec)
	if err != nil {
		return 0, errors.Wrap(err, "models: unable to delete all from name_after_last_name")
	}
	rowsAff, err := result.RowsAffected()
	if err != nil {
		return 0, errors.Wrap(err, "models: failed to get rows affected by deleteall for name_after_last_name")
	}
	return rowsAff, nil
}
func ( q nameAfterLastNameQuery ) DeleteAll ( ctx context . Context , exec boil . ContextExecutor ) ( int64 , error ) { if q . Query == nil { return 0 , errors . New ( " " ) } queries . SetDelete ( q . Query ) result , err := q . Query . ExecContext ( ctx , exec ) if err != nil { return 0 , errors . Wrap ( err , " " ) } rowsAff , err := result . RowsAffected ( ) if err != nil { return 0 , errors . Wrap ( err , " " ) } return rowsAff , nil }
DeleteAll deletes all matching rows.
DeleteAll deletes all matching rows .