QueryContext is the context to query.
| 114 | |
| 115 | // QueryContext is the context to query. |
| 116 | type 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. |
| 136 | type Driver interface { |