interface
CascadeTransaction
CascadeTransaction lists the documents a hard delete must also delete. Stores that support cascade delete policies implement it.
Properties
| Property | Type | Description |
|---|---|---|
CascadeOwners | func(context.Context, | CascadeOwners returns, in a stable order, each distinct current owner that references Target through a cascade field, excluding Target, the owners in IgnoreOwners that no longer exist, and PendingOwners. Adapters read their reference index and lock the rows as ApplyReferenceDelete does. |
Full signature
type CascadeTransaction interface {
// CascadeOwners returns, in a stable order, each distinct current owner
// that references Target through a cascade field, excluding Target, the
// owners in IgnoreOwners that no longer exist, and PendingOwners. Adapters
// read their reference index and lock the rows as ApplyReferenceDelete does.
CascadeOwners(context.Context, ReferenceDeleteRequest) ([]DocumentReference, error)
}