LearnNewsExamplesServices
Frontmatter
id7540
titleConvert dbService to DatabaseService Neo.mjs Class
stateClosed
labels
enhancementai
assigneestobiu
createdAtOct 18, 2025, 2:03 PM
updatedAtOct 18, 2025, 2:17 PM
githubUrlhttps://github.com/neomjs/neo/issues/7540
authortobiu
commentsCount0
parentIssue7536
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 18, 2025, 2:17 PM

Convert dbService to DatabaseService Neo.mjs Class

Closed v11.0.0 enhancementai
tobiu
tobiu commented on Oct 18, 2025, 2:03 PM

This ticket covers refactoring ai/mcp/server/memory-core/services/dbService.mjs into a singleton class that extends Neo.core.Base. The file will also be renamed to DatabaseService.mjs to follow a more consistent naming convention. This service handles the export and import of memory core data.

Acceptance Criteria

  1. The file ai/mcp/server/memory-core/services/dbService.mjs is renamed to ai/mcp/server/memory-core/services/DatabaseService.mjs.
  2. The dbService.mjs module is refactored into a DatabaseService class.
  3. The DatabaseService class extends Neo.core.Base and is configured as a singleton.
  4. Existing functions (exportCollection, exportDatabase, importDatabase) are converted into class methods.
  5. The ai/mcp/server/memory-core/services/toolService.mjs is updated to import the DatabaseService singleton and map its methods.
  6. Any other services that depend on dbService are updated to use the new DatabaseService singleton instance.
  7. All related tools (e.g., export_database, import_database) continue to function correctly after the refactoring.
tobiu assigned to @tobiu on Oct 18, 2025, 2:03 PM
tobiu added parent issue #7536 on Oct 18, 2025, 2:03 PM
tobiu added the enhancement label on Oct 18, 2025, 2:03 PM
tobiu added the ai label on Oct 18, 2025, 2:03 PM
tobiu referenced in commit 2823415 - "Convert dbService to DatabaseService Neo.mjs Class #7540" on Oct 18, 2025, 2:17 PM
tobiu closed this issue on Oct 18, 2025, 2:17 PM