feat: Implement CodeSnippet functionality with repository and use case layers, update CLI command references

This commit is contained in:
Haoxin Li
2025-07-28 14:39:27 +08:00
parent 9388e149d6
commit f321e19fd6
11 changed files with 439 additions and 63 deletions

View File

@@ -0,0 +1,9 @@
-- Drop foreign key constraint
ALTER TABLE code_snippets DROP CONSTRAINT IF EXISTS fk_codesnippets_workspace_file_id;
-- Drop indexes for code_snippets table
DROP INDEX IF EXISTS codesnippet_hash;
DROP INDEX IF EXISTS codesnippet_workspace_file_id;
DROP INDEX IF EXISTS codesnippet_language_type;
DROP INDEX IF EXISTS codesnippet_language_name;
-- Drop code_snippets table
DROP TABLE IF EXISTS code_snippets;