sqlc-dev / sqlc

Generate type-safe code from SQL
https://sqlc.dev
MIT License
12.27k stars 778 forks source link

Add Cloud Spanner and BigQuery support #1505

Open StevenACoffman opened 2 years ago

StevenACoffman commented 2 years ago

What do you want to change?

Just as sqlc supports PostgreSQL dialect, there is a similar binding for ZetaSQL dialect in https://github.com/goccy/go-zetasql

The ZetaSQL dialect is used by both GCP Cloud Spanner and BigQuery.

What database engines need to be changed?

ZetaSQL

What programming language backends need to be changed?

Go

kyleconroy commented 2 years ago

This is a great idea. Unlike a few other engines, ZetaSQL has a full parser that's easy to import. I'll need to play around with it to make sure that it builds on all our supported platforms.

kyleconroy commented 12 months ago

I removed the accepted label as we aren't planning on working on this in the short term. Still excited about it!