-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
chore: add conditionals for supabase to agent directory #2032
Conversation
Added Condional for Supabase to the initializeDatabase function to allow for ease of use for Supabase as well as keeping the postgres and sqlite funcitonality
I also would like to update the documentation that is at https://eliza.gg/eliza/docs/packages/adapters/ under Schema Management, PostgreSQL Schema. The Sql is incorrect and causes errors. I have the correct sql that ran on Supabase without error. When i look at the docs on the main branch of this repo. The lines that need edited do not exist. Where can i make this change? |
Coreected the supabase import to match the proper format.
Added adapter-supabase to packag.json so that the adapter will not fail to load.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
chore: add conditionals for supabase to agent directory
Added Condional for Supabase to the initializeDatabase function to allow for ease of use for Supabase as well as keeping the postgres and sqlite functionality. In conjunction with #2031
Relates to
N/A
Risks
Low
Background
As it stands, beginner users must add the Supabase functionality manually to use Supabase.
What does this PR do?
his PR allows for them to simply add their SUPABASE_URL and SUPABASE_ANON_KEY to the .env to use supabase as their db.
What kind of change is this?
Improvements (misc. changes to existing features)
Why are we doing this? Any context or related work?
As a user it is very difficult to use the Supabase adapter. This makes it much easier for a beginner user to not have to code any new functionality to use the adapter. In conjunction with #203 the user can simply add their SUPABASE_URL and SUPABASE_ANON_KEY to the .env to use supabase as their db.
Documentation changes needed?
My changes do not require a change to the project documentation, but if needed and you tell me where to update it, I can .
Testing
Needs testing.
Where should a reviewer start?
Detailed testing steps
As user add SUPABASE_URL and SUPABASE_ANON_KEY to the .env.
pnpm start
Verify that no errors are logged and that the data is being written to the supabase db.
Database changes
None
Deployment instructions
N/A
Discord username
4n7m4n