zetasql-format-server icon indicating copy to clipboard operation
zetasql-format-server copied to clipboard

GoogleSQL dialect format server using ZetaSQL

zetasql-format-server

It is GoogleSQL(BigQuery, Cloud Spanner) dialect format server using ZetaSQL. It runs on Cloud Run(and Knative Serving).

Run on Google Cloud

(Note: It takes very long time. Consider to use Boost mode or build on more powerful machine.)

Usage

$ SERVICE_URL=$(gcloud beta run services describe --format="value(status.domain)" ${REPO_NAME})
$ curl ${SERVICE_URL} --data 'SELECT * FROM tbl'
SELECT
  *
FROM
  tbl

References

  • https://github.com/google/zetasql
  • https://github.com/Matts966/alphasql
  • https://github.com/jamesward/cloud-run-button