Documentation
¶
Index ¶
- func BQTypeStringFromToolType(toolType string) (string, error)
- func DryRunQuery(ctx context.Context, restService *bigqueryrestapi.Service, projectID string, ...) (*bigqueryrestapi.Job, error)
- func InitializeDatasetParameters(allowedDatasets []string, defaultProjectID string, ...) (projectParam, datasetParam tools.Parameter)
- func TableParser(sql, defaultProjectID string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BQTypeStringFromToolType ¶ added in v0.17.0
BQTypeStringFromToolType converts a tool parameter type string to a BigQuery standard SQL type string.
func DryRunQuery ¶
func DryRunQuery(ctx context.Context, restService *bigqueryrestapi.Service, projectID string, location string, sql string, params []*bigqueryrestapi.QueryParameter, connProps []*bigqueryapi.ConnectionProperty) (*bigqueryrestapi.Job, error)
DryRunQuery performs a dry run of the SQL query to validate it and get metadata.
func InitializeDatasetParameters ¶ added in v0.17.0
func InitializeDatasetParameters( allowedDatasets []string, defaultProjectID string, projectKey, datasetKey string, projectDescription, datasetDescription string, ) (projectParam, datasetParam tools.Parameter)
InitializeDatasetParameters generates project and dataset tool parameters based on allowedDatasets.
func TableParser ¶
TableParser is the main entry point for parsing a SQL string to find all referenced table IDs. It handles multi-statement SQL, comments, and recursive parsing of EXECUTE IMMEDIATE statements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.