You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement database functions for managing WorkspaceCodeGraph entities, following the existing patterns used for WorkspaceRepositories. The WorkspaceCodeGraph struct represents a code graph associated with a workspace, storing metadata about the graph's name and URL.
Requirements
Add three new database functions in the db package:
GetCodeGraphByUUID
UpdateCodeGraphByUUID
DeleteCodeGraphByUUID
Functions should handle:
Error cases for not found items
Timestamps for updates
Return appropriate errors for invalid operations
Implementation Details
1. Database Interface
Add the following methods to the Database interface:
Description
Implement database functions for managing WorkspaceCodeGraph entities, following the existing patterns used for WorkspaceRepositories. The WorkspaceCodeGraph struct represents a code graph associated with a workspace, storing metadata about the graph's name and URL.
Requirements
Add three new database functions in the db package:
Functions should handle:
Implementation Details
1. Database Interface
Add the following methods to the Database interface:
2. Example Implementation Code
3. Tests
Add unit tests for each new function:
Task
Acceptance Criteria
The text was updated successfully, but these errors were encountered: