Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Sequelize Database Client #2601

Open
bbopar opened this issue Jan 21, 2025 · 1 comment
Open

Add Sequelize Database Client #2601

bbopar opened this issue Jan 21, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@bbopar
Copy link

bbopar commented Jan 21, 2025

Is your feature request related to a problem? Please describe.
The current database implementation uses raw SQL queries which can be cumbersome to maintain and test. Adding a Sequelize client option would provide developers with a more familiar and maintainable ORM-based approach while keeping the existing PostgreSQL adapter intact.

Describe the solution you'd like
Add a new SequelizeDatabaseClient class that implements the existing DatabaseAdapter interface using Sequelize ORM. This would provide:

  • Model-based database operations instead of raw SQL
  • Built-in connection pooling and transaction management
  • Better TypeScript integration through Sequelize models
  • Easier testing through Sequelize's test helpers
  • Optional alternative to the current PostgreSQL adapter

Describe alternatives you've considered

  • TypeORM: Less robust PostgreSQL support
  • Prisma: Requires additional build steps
  • Knex.js: Only query builder without ORM features
  • Keeping only raw SQL: Less maintainable long-term

Additional context
This would be an additive feature - the existing PostgreSQL adapter would remain untouched and developers could choose which implementation to use. The Sequelize client would follow the same interface and maintain compatibility with all current features including vector operations.

@bbopar bbopar added the enhancement New feature or request label Jan 21, 2025
Copy link
Contributor

Hello @bbopar! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant