Skip to content

Feature/v2/dbml #72

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

Open
wants to merge 10 commits into
base: feature/v2/train
Choose a base branch
from
Open

Feature/v2/dbml #72

wants to merge 10 commits into from

Conversation

jmikedupont2
Copy link
Member

work in progress

Copy link

trag-bot bot commented Apr 15, 2025

Pull request summary

  • Added a new submodule for the drizzle-dbml-generator to the project configuration.
  • Updated the package.json to include the new @elizaos/plugin-dbml dependency and its build script.
  • Modified the database migration scripts to include new foreign key constraints for tasks and memories tables.
  • Created a new database schema file for the plugin-dbml that defines the structure of various tables including agents, cache, components, and others.
  • Implemented a method in the DatabaseAdapter to retrieve the database schema.
  • Updated the AgentRuntime class to call the new method for fetching the database schema.
  • Adjusted the tasks schema to remove unnecessary references and ensure proper foreign key relationships.
  • Enhanced the drizzle migration files to reflect the latest schema changes and maintain versioning.
  • Added a README file for the plugin-dbml with instructions for installation and usage.
  • Updated TypeScript configuration files to ensure compatibility with the new plugin and its dependencies.

Copy link

trag-bot bot commented Apr 15, 2025

Pull request summary

  • Added a new submodule for the drizzle-dbml-generator to the project configuration.
  • Updated the package.json to include the new @elizaos/plugin-dbml dependency and added a build script for it.
  • Modified the database migration scripts to drop and add foreign key constraints for the memories, tasks, and agents tables.
  • Created a new database schema file for the plugin-dbml, defining the structure of various tables including agents, cache, components, and others.
  • Implemented a method in the DatabaseAdapter to retrieve the database schema.
  • Updated the AgentRuntime class to include a method for fetching the database schema.
  • Adjusted the tasks table schema to reference the room and agent tables correctly, ensuring proper foreign key relationships.
  • Enhanced the PgliteDatabaseAdapter to support schema retrieval and logging for debugging purposes.
  • Added a .gitignore file for the plugin-dbml to exclude unnecessary files from version control.
  • Created a README file for the plugin-dbml to provide installation and usage instructions.

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

Successfully merging this pull request may close these issues.

1 participant