Export Transaction type for atomic multi-operation support
Add Transaction type alias to both internal/beads and public beads packages. This allows extensions like VC to use RunInTransaction() with the proper Transaction interface type for atomic issue creation. bd-m73k 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -112,6 +112,10 @@ const (
|
||||
// Storage provides the minimal interface for extension orchestration
|
||||
type Storage = storage.Storage
|
||||
|
||||
// Transaction provides atomic multi-operation support within a database transaction.
|
||||
// Use Storage.RunInTransaction() to obtain a Transaction instance.
|
||||
type Transaction = storage.Transaction
|
||||
|
||||
// NewSQLiteStorage opens a bd SQLite database for programmatic access.
|
||||
// Most extensions should use this to query ready work and update issue status.
|
||||
func NewSQLiteStorage(ctx context.Context, dbPath string) (Storage, error) {
|
||||
|
||||
Reference in New Issue
Block a user