@@ -42,16 +42,18 @@ pub trait DatastoreDetachManyTarget<ResourceType>:
42
42
/// collection and a resource while detaching a resource.
43
43
///
44
44
/// - `collection_id`: Primary key of the collection being removed from.
45
- /// - `resource_id`: Primary key of the resource being detached.
46
45
/// - `collection_query`: An optional query for collection state. The
47
46
/// CTE will automatically filter this query to `collection_id`, and
48
47
/// validate that the "time deleted" column is NULL.
49
48
/// - `resource_query`: An optional query for the resource state. The
50
- /// CTE will automatically filter this query to `resource_id`,
49
+ /// CTE will automatically filter this query to non-deleted resources.
51
50
/// validate that the "time deleted" column is NULL, and validate that the
52
51
/// "collection_id" column points to `collection_id`.
53
- /// - `update`: An update statement, identifying how the resource object
54
- /// should be modified to be detached
52
+ /// - `update_collection`: An update statement, identifying how the
53
+ /// collection object should be modified as associated resources are
54
+ /// detached.
55
+ /// - `update_resource`: An update statement, identifying how the resource
56
+ /// objects should be modified to be detached
55
57
///
56
58
/// The VC, VR types refer to the "update target" of the UpdateStatements,
57
59
/// and should generally be inferred rather than explicitly specified.
0 commit comments