Documentation
¶
Overview ¶
Package bigquery contributes the BIGQUERY statement family to spanner-mycli through the Feature registration seam (issue #778). It is imported only by the full binary (via internal/mycli/feature/all); the core internal/mycli package does not import it, so cloud.google.com/go/bigquery stays off the core import path. The cloud dependency is aliased as bq throughout this package.
Tracked debt: BigQuery values are exported as display strings, not typed values (see formatBigQueryValue). A BIGQUERY query result therefore cannot be consumed downstream with column types; this limitation is inherited from the original in-core implementation and tracked as the feature's debt in #778 §1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BigQueryStatement ¶
type BigQueryStatement struct {
mycli.MutationClassifier
mycli.MarksDetachedCompatible
SQL string
// contains filtered or unexported fields
}
BigQueryStatement executes a single BigQuery SQL statement. It embeds mycli.MutationClassifier (Classify wired in the constructor to the fail-closed first-keyword classifier over its own SQL) so the READONLY guard can reject mutating BigQuery statements, and mycli.MarksDetachedCompatible so it runs in detached session mode (admin-only, no Spanner database).