powerhouse-inc / switchboard

Open-source API over the document model made to be developer- and analyst-friendly
https://switchboard-boilerplate.vercel.app
GNU Affero General Public License v3.0
3 stars 3 forks source link

Investigate suitable SQL playground #51

Open valiafetisov opened 1 year ago

valiafetisov commented 1 year ago

Goal

List of compared SQL playgrounds with a conclusion on which to use and how to integrate it

Context

Since we want to provide analysts the possibility to investigate data stored in the database, we eventually want to expose interface for running SQL queries over the read-only database instance. Therefore, the whole integration will be done in several steps:

  1. Investigate if there is a good SQL playground that we can use (this issue)
  2. Separate users/sessions from the rest of the database (will be done as part of the document-model-libs integration, i.e. https://github.com/makerdao-ses/switchboard-boilerplate/issues/31 of before)
  3. Expose additional read-only replica of the database, but protected via our tokens/cookies
  4. Integrate SQL playground

Note: I don't think "SQL playground" is a commonly used term, so we rather need to investigate what tools data analyst use in order to explore databases and perform complex SQL operations

Potential outcome of this issue might also be that there is no good open-source service available and we should instead provide instructions on how to use external services/desktop apps of their choice.

Tasks

BracketJohn commented 1 year ago

pointers:

KirillDogadin-std commented 1 year ago

Let's first agree on list of qualities. My suggestion: