@maxim_mazurok/gapi.client.spanner-v1 0.0.20231010 → 0.0.20231023
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +20 -1
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://spanner.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20231023
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -714,6 +714,14 @@ declare namespace gapi.client {
|
|
|
714
714
|
requestedPolicyVersion?:
|
|
715
715
|
number;
|
|
716
716
|
}
|
|
717
|
+
interface IndexAdvice {
|
|
718
|
+
/** Optional. DDL statements to add new indexes that will improve the query. */
|
|
719
|
+
ddl?:
|
|
720
|
+
string[];
|
|
721
|
+
/** Optional. Estimated latency improvement factor. For example if the query currently takes 500 ms to run and the estimated latency with new indexes is 100 ms this field will be 5. */
|
|
722
|
+
improvementFactor?:
|
|
723
|
+
number;
|
|
724
|
+
}
|
|
717
725
|
interface IndexedHotKey {
|
|
718
726
|
/**
|
|
719
727
|
* A (sparse) mapping from key bucket index to the index of the specific hot row key for that key bucket. The index of the hot row key can be translated to the actual row key via the
|
|
@@ -1366,6 +1374,14 @@ declare namespace gapi.client {
|
|
|
1366
1374
|
word?:
|
|
1367
1375
|
string;
|
|
1368
1376
|
}
|
|
1377
|
+
interface QueryAdvisorResult {
|
|
1378
|
+
/**
|
|
1379
|
+
* Optional. Index Recommendation for a query. This is an optional field and the recommendation will only be available when the recommendation guarantees significant improvement in
|
|
1380
|
+
* query performance.
|
|
1381
|
+
*/
|
|
1382
|
+
indexAdvice?:
|
|
1383
|
+
IndexAdvice[];
|
|
1384
|
+
}
|
|
1369
1385
|
interface QueryOptions {
|
|
1370
1386
|
/**
|
|
1371
1387
|
* An option to control the selection of optimizer statistics package. This parameter allows individual queries to use a different query optimizer statistics package. Specifying
|
|
@@ -1392,6 +1408,9 @@ declare namespace gapi.client {
|
|
|
1392
1408
|
/** The nodes in the query plan. Plan nodes are returned in pre-order starting with the plan root. Each PlanNode's `id` corresponds to its index in `plan_nodes`. */
|
|
1393
1409
|
planNodes?:
|
|
1394
1410
|
PlanNode[];
|
|
1411
|
+
/** Optional. The advices/recommendations for a query. Currently this field will be serving index recommendations for a query. */
|
|
1412
|
+
queryAdvice?:
|
|
1413
|
+
QueryAdvisorResult;
|
|
1395
1414
|
}
|
|
1396
1415
|
interface ReadOnly {
|
|
1397
1416
|
/**
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20231023
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|