interface

CascadeTransaction

CascadeTransaction lists the documents a hard delete must also delete. Stores that support cascade delete policies implement it.

Properties

PropertyTypeDescription
CascadeOwnersfunc(context.Context, ReferenceDeleteRequest) ([]DocumentReference, error)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) }

Source store/store.go:614