Versions in this module Expand all Collapse all v0 v0.46.0 Nov 18, 2026 Changes in this version + const AgentDefaultPrecision + const DefaultSpillThresholdBytes + const PartialConsumption + const PartialResultLimit + const PartialScanLimit + const PartialTimeout + func ExtractQueryRecords(result *DQLQueryResponse) []map[string]interface + func ParseByteSize(s string) (int64, error) + func ParseParams(paramStrings []string) (map[string]string, error) + func PartialCause(n QueryNotification) string + func ReadFileOrStdin(filename string) (string, error) + func ReadFileOrStdinWith(env vfs.Env, filename string) (string, error) + func ResultIsPartial(n QueryNotification) bool + func StorageScopeForDataObject(name string) (string, bool) + func StorageScopesInText(s string) []string + func TrackUsage(c *client.Client, r UsageRecorder) + type AnalysisTimeframe = sdkquery.AnalysisTimeframe + type BucketContribution = sdkquery.BucketContribution + type ColumnType = sdkquery.ColumnType + type ColumnTypes = sdkquery.ColumnTypes + type Contributions = sdkquery.Contributions + type DQLExecuteOptions struct + AgentMode bool + AutoFormatByDefault bool + ClientContext string + Compact bool + ContextName string + Decode DecodeMode + Decorate func(ctx *output.ResponseContext, result *DQLQueryResponse, ...) + DefaultSamplingRatio float64 + DefaultScanLimitGbytes float64 + DefaultTimeframeEnd string + DefaultTimeframeStart string + EmitTypes bool + EnablePreview bool + EnforceQueryConsumptionLimit bool + FetchTimeoutSeconds int32 + Fullscreen bool + Height int + IncludeContributions bool + IncludeTypes bool + JQFilter string + Locale string + MaxFieldChars int + MaxOutputBytes int64 + MaxResultBytes int64 + MaxResultRecords int64 + MetadataDefaulted bool + MetadataFields []string + OutputFormat string + Precision int + PrecisionDefaulted bool + Segments []FilterSegmentRef + Series output.SeriesMode + SeriesDefaulted bool + ShowProgress bool + Spill SpillOptions + TenantID string + Timezone string + Typed bool + TypesRequested bool + Verbose bool + Width int + type DQLExecutor struct + func NewDQLExecutor(c *client.Client) *DQLExecutor + func (e *DQLExecutor) CancelQuery(requestToken string) + func (e *DQLExecutor) Execute(query string, outputFormat string) error + func (e *DQLExecutor) ExecuteFromFile(filename string, outputFormat string) error + func (e *DQLExecutor) ExecuteQuery(query string) (*DQLQueryResponse, error) + func (e *DQLExecutor) ExecuteQueryWithContext(ctx context.Context, query string, opts DQLExecuteOptions) (*DQLQueryResponse, error) + func (e *DQLExecutor) ExecuteQueryWithOptions(query string, opts DQLExecuteOptions) (*DQLQueryResponse, error) + func (e *DQLExecutor) ExecuteWithContext(ctx context.Context, query string, opts DQLExecuteOptions) error + func (e *DQLExecutor) ExecuteWithOptions(query string, opts DQLExecuteOptions) error + func (e *DQLExecutor) PrintNotifications(notifications []QueryNotification) + func (e *DQLExecutor) VerifyQuery(query string, opts DQLVerifyOptions) (*DQLVerifyResponse, error) + func (e *DQLExecutor) VerifyQueryWithContext(ctx context.Context, query string, opts DQLVerifyOptions) (*DQLVerifyResponse, error) + func (e *DQLExecutor) WithStreams(stdout, stderr io.Writer) *DQLExecutor + func (e *DQLExecutor) WithTokenRefresher(refresher func() (string, error)) *DQLExecutor + func (e *DQLExecutor) WithUsageRecorder(r UsageRecorder) *DQLExecutor + func (e *DQLExecutor) WithVFS(env vfs.Env) *DQLExecutor + type DQLMetadata = sdkquery.Metadata + type DQLQueryRequest = sdkquery.ExecuteRequest + type DQLQueryResponse = sdkquery.Response + type DQLResult = sdkquery.Result + type DQLVerifyOptions struct + ClientContext string + GenerateCanonicalQuery bool + Locale string + Timezone string + type DQLVerifyRequest = sdkquery.VerifyRequest + type DQLVerifyResponse = sdkquery.VerifyResponse + type DecodeMode int + const DecodeFull + const DecodeNone + const DecodeSimplified + type ExecutionStatus struct + EndedAt *time.Time + ID string + Result any + Runtime int + StartedAt time.Time + State string + StateInfo *string + Workflow string + func (s *ExecutionStatus) IsTerminalState() bool + type FilterSegmentRef = sdkquery.FilterSegmentRef + type FilterSegmentVariable = sdkquery.FilterSegmentVariable + type FunctionExecuteOptions struct + AppID string + Defer bool + FunctionName string + Method string + Payload string + PayloadFile string + SDKMajorVersions map[string]string + SourceCode string + SourceCodeFile string + type FunctionExecutor struct + func NewFunctionExecutor(c *client.Client) *FunctionExecutor + func (e *FunctionExecutor) Execute(opts FunctionExecuteOptions) (interface{}, error) + func (e *FunctionExecutor) GetSDKVersions() (*appengine.SDKVersionsResponse, error) + func (e *FunctionExecutor) WithVFS(env vfs.Env) *FunctionExecutor + type GrailMetadata = sdkquery.GrailMetadata + type MetadataNotification = sdkquery.VerifyNotification + type MetricInfo = sdkquery.MetricInfo + type Position = sdkquery.Position + type QueryError = sdkquery.QueryError + type QueryNotification = sdkquery.Notification + type QueryStateError = sdkquery.StateError + type ScopeNeed struct + Because []string + Scope string + func RequiredStorageScopes(query string) []ScopeNeed + type SpillMode string + const SpillAlways + const SpillAuto + const SpillNever + type SpillOptions struct + Dir string + Format string + Mode SpillMode + TTL time.Duration + Threshold int64 + ToPath string + func (o SpillOptions) Enabled() bool + type SyntaxPosition = sdkquery.SyntaxPosition + type TimeseriesPoint struct + Timestamp time.Time + Value float64 + func ExtractLatestPointFromTimeseries(records []map[string]interface{}, field string) (TimeseriesPoint, bool) + type UsageRecorder interface + RecordQuery func(usage.Sample) + type WaitOptions struct + PollInterval time.Duration + Timeout time.Duration + func DefaultWaitOptions() WaitOptions + type WorkflowExecutionRequest struct + Input map[string]any + Monitor bool + Params map[string]interface{} + type WorkflowExecutionResponse struct + ID string + State string + Workflow string + type WorkflowExecutor struct + func NewWorkflowExecutor(c *client.Client) *WorkflowExecutor + func (e *WorkflowExecutor) Execute(workflowID string, req WorkflowExecutionRequest) (*WorkflowExecutionResponse, error) + func (e *WorkflowExecutor) GetStatus(executionID string) (*ExecutionStatus, error) + func (e *WorkflowExecutor) WaitForCompletion(ctx context.Context, executionID string, opts WaitOptions) (*ExecutionStatus, error)