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

chore: add conditionals for supabase to agent directory #2032

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

antman1p
Copy link

@antman1p antman1p commented Jan 8, 2025

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

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
@antman1p antman1p mentioned this pull request Jan 8, 2025
odilitime
odilitime previously approved these changes Jan 8, 2025
@odilitime odilitime changed the base branch from main to develop January 8, 2025 21:14
@odilitime odilitime dismissed their stale review January 8, 2025 21:14

The base branch was changed.

@odilitime odilitime changed the title Update index.ts chore: add conditionals for supabase to agent directory Jan 8, 2025
@antman1p
Copy link
Author

antman1p commented Jan 9, 2025

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?

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.

2 participants