RemoveStoragePolicy removes "storage_policy" edges to StoragePolicy entities.
(s ...*StoragePolicy)
| 212 | |
| 213 | // RemoveStoragePolicy removes "storage_policy" edges to StoragePolicy entities. |
| 214 | func (nu *NodeUpdate) RemoveStoragePolicy(s ...*StoragePolicy) *NodeUpdate { |
| 215 | ids := make([]int, len(s)) |
| 216 | for i := range s { |
| 217 | ids[i] = s[i].ID |
| 218 | } |
| 219 | return nu.RemoveStoragePolicyIDs(ids...) |
| 220 | } |
| 221 | |
| 222 | // Save executes the query and returns the number of nodes affected by the update operation. |
| 223 | func (nu *NodeUpdate) Save(ctx context.Context) (int, error) { |
nothing calls this directly
no test coverage detected