beads/internal/storage/bulk_issues.go
2026-05-15 09:05:29 -07:00

19 lines
927 B
Go

package storage
import (
"context"
"github.com/steveyegge/beads/internal/types"
)
// BulkIssueStore provides extended issue CRUD beyond the base Storage interface.
type BulkIssueStore interface {
CreateIssuesWithFullOptions(ctx context.Context, issues []*types.Issue, actor string, opts BatchCreateOptions) error
DeleteIssues(ctx context.Context, ids []string, cascade bool, force bool, dryRun bool) (*types.DeleteIssuesResult, error)
DeleteIssuesBySourceRepo(ctx context.Context, sourceRepo string) (int, error)
UpdateIssueID(ctx context.Context, oldID, newID string, issue *types.Issue, actor string) error
ClaimIssue(ctx context.Context, id string, actor string) error
ClaimReadyIssue(ctx context.Context, filter types.WorkFilter, actor string) (*types.Issue, error)
PromoteFromEphemeral(ctx context.Context, id string, actor string) error
GetNextChildID(ctx context.Context, parentID string) (string, error)
}