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

Switch Between Databases - Retain Saved Relationships #317

Open
andre-scheinwald opened this issue May 24, 2024 · 2 comments
Open

Switch Between Databases - Retain Saved Relationships #317

andre-scheinwald opened this issue May 24, 2024 · 2 comments

Comments

@andre-scheinwald
Copy link

Please describe.
After setting up a connection to a database, selecting tables, defining relationships - It would be nice to be able to set up a connection to a database on a different server while retaining the settings of the other database. Basically allow a user to switch back and forth between what database they are querying. Without having to redo the setup process each time.

Describe alternatives you've considered
I haven't really thought this through. Aside from maybe trying to create different saved instances of wrenai using the docker image.

@wwwy3y3
Copy link
Member

wwwy3y3 commented May 28, 2024

@andre-scheinwald thanks for the feature request! We'll discuss internally about the possibility of switching databases.

@qdrddr
Copy link
Contributor

qdrddr commented May 28, 2024

I would expand this into be able to have different versions of DB and then switch from the "old" version to the most recently new version preserving preserving old connections (if the required connected fields still exists).

So the idea is to:

  • Have a separate DB for Production with full dataset & for WrenAI, lets call it staging DB, with limited number of records,
  • create schema in WrenAI,
  • Then if production updates, remove or adds new fields, copy that to the Staging DB
  • Review new version of DB, adjust Schema and comments in WrenAI UI
  • Switch WrenAI to use the most recent new version of the DB

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

No branches or pull requests

3 participants