MCPcopy Create free account
hub / github.com/bytebase/bytebase / QueryContext

Struct QueryContext

backend/plugin/db/driver.go:116–133  ·  view source on GitHub ↗

QueryContext is the context to query.

Source from the content-addressed store, hash-verified

114
115// QueryContext is the context to query.
116type QueryContext struct {
117 // Schema is the specific schema for the query.
118 // Mainly used for the search path of PostgreSQL.
119 Schema string
120 // Container is the specific container for the query.
121 // Mainly used for CosmosDB.
122 Container string
123 // Limit is the maximum row count returned. No limit enforced if limit <= 0
124 Limit int
125 Explain bool
126 OperatorEmail string
127 Option *v1pb.QueryOption
128 // SkipMasking skips data masking when the query is authorized by an access grant with unmask=true.
129 SkipMasking bool
130 // The maximum number of bytes for sql results in response body.
131 MaximumSQLResultSize int64
132 Timeout *durationpb.Duration
133}
134
135// Driver is the interface for database driver.
136type Driver interface {

Callers 1

getSessionFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected