Skip to content

Commit

Permalink
feat: add query stats package (via synth)
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee committed Aug 6, 2020
1 parent 8910771 commit 4529ad3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
6 changes: 6 additions & 0 deletions google/cloud/spanner_v1/proto/spanner.proto
Expand Up @@ -438,9 +438,15 @@ message ExecuteSqlRequest {
// SPANNER_SYS.SUPPORTED_OPTIMIZER_VERSIONS. Executing a SQL statement
// with an invalid optimizer version will fail with a syntax error
// (`INVALID_ARGUMENT`) status.
// See
// https://cloud.google.com/spanner/docs/query-optimizer/manage-query-optimizer
// for more information on managing the query optimizer.
//
// The `optimizer_version` statement hint has precedence over this setting.
string optimizer_version = 1;

// Statistics package to use. Empty to use the database default.
string optimizer_statistics_package = 2;
}

// Mode in which the statement must be processed.
Expand Down
35 changes: 32 additions & 3 deletions synth.metadata
Expand Up @@ -4,21 +4,50 @@
"git": {
"name": ".",
"remote": "git@github.com:larkee/python-spanner.git",
"sha": "3e54af6f8582e9620afb704e1d08994eab12c365"
"sha": "891077105d5093a73caf96683d10afef2cd17823"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "2686d7075fa456972bf4d08680d99617f5eb32b1"
"sha": "4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "2686d7075fa456972bf4d08680d99617f5eb32b1"
"sha": "4530cc6ff080ef8aca258c1ec92c4db10a1bbfb4"
}
}
],
"destinations": [
{
"client": {
"source": "googleapis",
"apiName": "spanner",
"apiVersion": "v1",
"language": "python",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "spanner_admin_instance",
"apiVersion": "v1",
"language": "python",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "spanner_admin_database",
"apiVersion": "v1",
"language": "python",
"generator": "bazel"
}
}
]
Expand Down

0 comments on commit 4529ad3

Please sign in to comment.