Corresponding tutorial 🔗.
This example demonstrates how to embed Bytebase SQL Editor with iframe into your own application and call Bytebase API to prepare the environment.
You are a SaaS provider and you provision a separate database to store the data for each customer. Sometimes, you need your support team to query the customer database for troubleshooting. You want to embed SQL Editor into your internal support portal and grant query permission to the support team on demand.
- A Bytebase deployment.
- A PostgreSQL instance for hosting endusers' playground db.
- Configure SSO so users don't need to log in Bytebase separately.
- Support engineer visits the internal support portal and clicks
troubleshoot
. - Call the Bytebase API to create a project.
- Call the Bytebase API to create a database under that project.
- Call the Bytebase API to grant the permission to the support engineer to query the database.
- Redirect the support engineer to SQL Editor page to run the query.