Implement CreateIssues batch API (bd-240, bd-244)

- Add CreateIssues method to Storage interface
- Implement SQLiteStorage.CreateIssues with atomic ID range reservation
- Single transaction for N issues (5-10x speedup expected)
- Set timestamps before validation to match CreateIssue behavior
- All tests passing
This commit is contained in:
Steve Yegge
2025-10-15 19:13:27 -07:00
parent e4394df604
commit e7d4a9c822
3 changed files with 176 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ import (
type Storage interface {
// Issues
CreateIssue(ctx context.Context, issue *types.Issue, actor string) error
CreateIssues(ctx context.Context, issues []*types.Issue, actor string) error
GetIssue(ctx context.Context, id string) (*types.Issue, error)
UpdateIssue(ctx context.Context, id string, updates map[string]interface{}, actor string) error
CloseIssue(ctx context.Context, id string, reason string, actor string) error