Steve Yegge
58f37d05c6
refactor: Split monolithic sqlite.go into focused files (bd-0a43)
Split internal/storage/sqlite/sqlite.go (1050 lines) into focused files
for better maintainability and code discovery:
- store.go (306 lines): SQLiteStorage struct, New() constructor,
initialization logic, and database utilities (Close, Path, IsClosed,
UnderlyingDB, UnderlyingConn, CheckpointWAL)
- queries.go (1173 lines): Issue CRUD operations including CreateIssue,
GetIssue, GetIssueByExternalRef, UpdateIssue, UpdateIssueID,
CloseIssue, DeleteIssue, DeleteIssues, SearchIssues with all helpers
- config.go (95 lines): Configuration and metadata management (SetConfig,
GetConfig, GetAllConfig, DeleteConfig, SetMetadata, GetMetadata) plus
OrphanHandling type definitions
- comments.go (83 lines): Comment operations (AddIssueComment,
GetIssueComments)
- sqlite.go (31 lines): Package documentation explaining file organization
Additional changes:
- Removed duplicate OrphanHandling definition from ids.go (was causing
build error with new config.go)
Impact:
- Zero functional changes, all tests pass (2.6s runtime)
- Improved code discovery: easy to locate specific functionality
- Better maintainability: related code grouped logically
- Reduced cognitive load: smaller, focused files
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 19:04:34 -08:00
..
2025-11-20 19:29:30 -05:00
2025-11-21 14:40:22 -05:00
2025-11-04 01:08:21 -08:00
2025-11-03 12:02:15 -08:00
2025-11-05 00:02:57 -08:00
2025-11-20 19:17:57 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 19:29:30 -05:00
2025-11-06 20:06:45 -08:00
2025-11-21 11:40:37 -05:00
2025-11-08 02:22:15 -08:00
2025-11-08 02:22:15 -08:00
2025-11-23 19:04:34 -08:00
2025-11-20 21:57:23 -05:00
2025-11-20 18:55:10 -05:00
2025-11-20 18:55:10 -05:00
2025-11-23 19:04:34 -08:00
2025-11-15 12:46:13 -08:00
2025-11-20 19:29:30 -05:00
2025-11-02 14:49:27 -08:00
2025-11-20 19:17:57 -05:00
2025-11-20 19:17:57 -05:00
2025-11-02 14:49:27 -08:00
2025-11-23 10:57:29 -08:00
2025-11-20 18:55:10 -05:00
2025-11-02 16:27:42 -08:00
2025-11-20 21:57:23 -05:00
2025-11-21 11:40:37 -05:00
2025-11-23 19:04:34 -08:00
2025-11-04 23:12:41 -08:00
2025-11-20 14:20:45 -05:00
2025-11-02 14:03:14 -08:00
2025-11-02 14:03:14 -08:00
2025-11-06 20:06:45 -08:00
2025-11-20 19:29:30 -05:00
2025-11-06 20:14:34 -08:00
2025-11-04 23:12:41 -08:00
2025-11-05 01:11:09 -08:00
2025-11-05 00:02:57 -08:00
2025-11-20 21:57:23 -05:00
2025-11-23 19:04:34 -08:00
2025-11-20 19:29:30 -05:00
2025-11-04 22:25:33 -08:00
2025-11-21 11:40:37 -05:00
2025-11-08 15:40:19 -08:00
2025-11-17 10:06:35 -07:00
2025-11-15 12:46:13 -08:00
2025-11-15 12:46:13 -08:00
2025-11-20 21:57:23 -05:00
2025-11-23 19:04:34 -08:00
2025-11-23 19:04:34 -08:00
2025-11-20 21:57:23 -05:00
2025-11-20 21:57:23 -05:00
2025-11-20 19:17:57 -05:00