query-cache-protobuf 2.11.0__tar.gz → 2.12.0__tar.gz
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.
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/PKG-INFO +1 -1
- query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +34 -0
- query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +66 -0
- query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +44 -0
- query_cache_protobuf-2.12.0/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +97 -0
- query_cache_protobuf-2.12.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.py +44 -0
- query_cache_protobuf-2.12.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2.pyi +95 -0
- query_cache_protobuf-2.12.0/src/query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py +97 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/.gitignore +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/pyproject.toml +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/clone_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/shared_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto4/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/clone_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/shared_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/_proto5/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/__init__.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_telemetry_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/client_validation_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/clone_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/execution_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/explain_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/health_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/selector_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/services/sql_service_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/shared_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/shared_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/shared_pb2_grpc.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/struct_pb2.py +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/struct_pb2.pyi +0 -0
- {query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/query_cache/struct_pb2_grpc.py +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: query_cache_protobuf/query_cache/services/sql_analysis_service.proto
|
|
4
|
+
# Protobuf Python Version: 4.25.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDquery_cache_protobuf/query_cache/services/sql_analysis_service.proto\x12\x18\x63om.fivetran.query_cache\">\n\x1d\x45xtractTableReferencesRequest\x12\x0f\n\x07\x64ialect\x18\x01 \x01(\t\x12\x0c\n\x04sqls\x18\x02 \x03(\t\",\n\x0eTableReference\x12\r\n\x05parts\x18\x01 \x03(\t\x12\x0b\n\x03\x66qn\x18\x02 \x01(\t\"b\n\x12SqlTableReferences\x12\x0e\n\x06parsed\x18\x01 \x01(\x08\x12<\n\nreferences\x18\x02 \x03(\x0b\x32(.com.fivetran.query_cache.TableReference\"_\n\x1e\x45xtractTableReferencesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.com.fivetran.query_cache.SqlTableReferences2\x9b\x01\n\x0bSQLAnalysis\x12\x8b\x01\n\x16\x45xtractTableReferences\x12\x37.com.fivetran.query_cache.ExtractTableReferencesRequest\x1a\x38.com.fivetran.query_cache.ExtractTableReferencesResponseb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.sql_analysis_service_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_start=98
|
|
25
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_end=160
|
|
26
|
+
_globals['_TABLEREFERENCE']._serialized_start=162
|
|
27
|
+
_globals['_TABLEREFERENCE']._serialized_end=206
|
|
28
|
+
_globals['_SQLTABLEREFERENCES']._serialized_start=208
|
|
29
|
+
_globals['_SQLTABLEREFERENCES']._serialized_end=306
|
|
30
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_start=308
|
|
31
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_end=403
|
|
32
|
+
_globals['_SQLANALYSIS']._serialized_start=406
|
|
33
|
+
_globals['_SQLANALYSIS']._serialized_end=561
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from query_cache_protobuf.query_cache.services import sql_analysis_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SQLAnalysisStub(object):
|
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
|
10
|
+
|
|
11
|
+
def __init__(self, channel):
|
|
12
|
+
"""Constructor.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
channel: A grpc.Channel.
|
|
16
|
+
"""
|
|
17
|
+
self.ExtractTableReferences = channel.unary_unary(
|
|
18
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
19
|
+
request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
20
|
+
response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class SQLAnalysisServicer(object):
|
|
25
|
+
"""Missing associated documentation comment in .proto file."""
|
|
26
|
+
|
|
27
|
+
def ExtractTableReferences(self, request, context):
|
|
28
|
+
"""Missing associated documentation comment in .proto file."""
|
|
29
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
30
|
+
context.set_details('Method not implemented!')
|
|
31
|
+
raise NotImplementedError('Method not implemented!')
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def add_SQLAnalysisServicer_to_server(servicer, server):
|
|
35
|
+
rpc_method_handlers = {
|
|
36
|
+
'ExtractTableReferences': grpc.unary_unary_rpc_method_handler(
|
|
37
|
+
servicer.ExtractTableReferences,
|
|
38
|
+
request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.FromString,
|
|
39
|
+
response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.SerializeToString,
|
|
40
|
+
),
|
|
41
|
+
}
|
|
42
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
43
|
+
'com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
44
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# This class is part of an EXPERIMENTAL API.
|
|
48
|
+
class SQLAnalysis(object):
|
|
49
|
+
"""Missing associated documentation comment in .proto file."""
|
|
50
|
+
|
|
51
|
+
@staticmethod
|
|
52
|
+
def ExtractTableReferences(request,
|
|
53
|
+
target,
|
|
54
|
+
options=(),
|
|
55
|
+
channel_credentials=None,
|
|
56
|
+
call_credentials=None,
|
|
57
|
+
insecure=False,
|
|
58
|
+
compression=None,
|
|
59
|
+
wait_for_ready=None,
|
|
60
|
+
timeout=None,
|
|
61
|
+
metadata=None):
|
|
62
|
+
return grpc.experimental.unary_unary(request, target, '/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
63
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
64
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
65
|
+
options, channel_credentials,
|
|
66
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: query_cache_protobuf/query_cache/services/sql_analysis_service.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'query_cache_protobuf/query_cache/services/sql_analysis_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDquery_cache_protobuf/query_cache/services/sql_analysis_service.proto\x12\x18\x63om.fivetran.query_cache\">\n\x1d\x45xtractTableReferencesRequest\x12\x0f\n\x07\x64ialect\x18\x01 \x01(\t\x12\x0c\n\x04sqls\x18\x02 \x03(\t\",\n\x0eTableReference\x12\r\n\x05parts\x18\x01 \x03(\t\x12\x0b\n\x03\x66qn\x18\x02 \x01(\t\"b\n\x12SqlTableReferences\x12\x0e\n\x06parsed\x18\x01 \x01(\x08\x12<\n\nreferences\x18\x02 \x03(\x0b\x32(.com.fivetran.query_cache.TableReference\"_\n\x1e\x45xtractTableReferencesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.com.fivetran.query_cache.SqlTableReferences2\x9b\x01\n\x0bSQLAnalysis\x12\x8b\x01\n\x16\x45xtractTableReferences\x12\x37.com.fivetran.query_cache.ExtractTableReferencesRequest\x1a\x38.com.fivetran.query_cache.ExtractTableReferencesResponseb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.sql_analysis_service_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_start=98
|
|
35
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_end=160
|
|
36
|
+
_globals['_TABLEREFERENCE']._serialized_start=162
|
|
37
|
+
_globals['_TABLEREFERENCE']._serialized_end=206
|
|
38
|
+
_globals['_SQLTABLEREFERENCES']._serialized_start=208
|
|
39
|
+
_globals['_SQLTABLEREFERENCES']._serialized_end=306
|
|
40
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_start=308
|
|
41
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_end=403
|
|
42
|
+
_globals['_SQLANALYSIS']._serialized_start=406
|
|
43
|
+
_globals['_SQLANALYSIS']._serialized_end=561
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from query_cache_protobuf.query_cache.services import sql_analysis_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.71.2'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ f' but the generated code in query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class SQLAnalysisStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.ExtractTableReferences = channel.unary_unary(
|
|
38
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
39
|
+
request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
40
|
+
response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class SQLAnalysisServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def ExtractTableReferences(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def add_SQLAnalysisServicer_to_server(servicer, server):
|
|
55
|
+
rpc_method_handlers = {
|
|
56
|
+
'ExtractTableReferences': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.ExtractTableReferences,
|
|
58
|
+
request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.FromString,
|
|
59
|
+
response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class SQLAnalysis(object):
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
@staticmethod
|
|
73
|
+
def ExtractTableReferences(request,
|
|
74
|
+
target,
|
|
75
|
+
options=(),
|
|
76
|
+
channel_credentials=None,
|
|
77
|
+
call_credentials=None,
|
|
78
|
+
insecure=False,
|
|
79
|
+
compression=None,
|
|
80
|
+
wait_for_ready=None,
|
|
81
|
+
timeout=None,
|
|
82
|
+
metadata=None):
|
|
83
|
+
return grpc.experimental.unary_unary(
|
|
84
|
+
request,
|
|
85
|
+
target,
|
|
86
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
87
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
88
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
89
|
+
options,
|
|
90
|
+
channel_credentials,
|
|
91
|
+
insecure,
|
|
92
|
+
call_credentials,
|
|
93
|
+
compression,
|
|
94
|
+
wait_for_ready,
|
|
95
|
+
timeout,
|
|
96
|
+
metadata,
|
|
97
|
+
_registered_method=True)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: query_cache_protobuf/query_cache/services/sql_analysis_service.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'query_cache_protobuf/query_cache/services/sql_analysis_service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nDquery_cache_protobuf/query_cache/services/sql_analysis_service.proto\x12\x18\x63om.fivetran.query_cache\">\n\x1d\x45xtractTableReferencesRequest\x12\x0f\n\x07\x64ialect\x18\x01 \x01(\t\x12\x0c\n\x04sqls\x18\x02 \x03(\t\",\n\x0eTableReference\x12\r\n\x05parts\x18\x01 \x03(\t\x12\x0b\n\x03\x66qn\x18\x02 \x01(\t\"b\n\x12SqlTableReferences\x12\x0e\n\x06parsed\x18\x01 \x01(\x08\x12<\n\nreferences\x18\x02 \x03(\x0b\x32(.com.fivetran.query_cache.TableReference\"_\n\x1e\x45xtractTableReferencesResponse\x12=\n\x07results\x18\x01 \x03(\x0b\x32,.com.fivetran.query_cache.SqlTableReferences2\x9b\x01\n\x0bSQLAnalysis\x12\x8b\x01\n\x16\x45xtractTableReferences\x12\x37.com.fivetran.query_cache.ExtractTableReferencesRequest\x1a\x38.com.fivetran.query_cache.ExtractTableReferencesResponseb\x06proto3')
|
|
28
|
+
|
|
29
|
+
_globals = globals()
|
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'query_cache_protobuf.query_cache.services.sql_analysis_service_pb2', _globals)
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_start=98
|
|
35
|
+
_globals['_EXTRACTTABLEREFERENCESREQUEST']._serialized_end=160
|
|
36
|
+
_globals['_TABLEREFERENCE']._serialized_start=162
|
|
37
|
+
_globals['_TABLEREFERENCE']._serialized_end=206
|
|
38
|
+
_globals['_SQLTABLEREFERENCES']._serialized_start=208
|
|
39
|
+
_globals['_SQLTABLEREFERENCES']._serialized_end=306
|
|
40
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_start=308
|
|
41
|
+
_globals['_EXTRACTTABLEREFERENCESRESPONSE']._serialized_end=403
|
|
42
|
+
_globals['_SQLANALYSIS']._serialized_start=406
|
|
43
|
+
_globals['_SQLANALYSIS']._serialized_end=561
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
@typing.final
|
|
16
|
+
class ExtractTableReferencesRequest(google.protobuf.message.Message):
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
18
|
+
|
|
19
|
+
DIALECT_FIELD_NUMBER: builtins.int
|
|
20
|
+
SQLS_FIELD_NUMBER: builtins.int
|
|
21
|
+
dialect: builtins.str
|
|
22
|
+
"""sqlglot dialect used to parse the SQL"""
|
|
23
|
+
@property
|
|
24
|
+
def sqls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
25
|
+
"""Rendered SQL strings; each may hold several statements"""
|
|
26
|
+
|
|
27
|
+
def __init__(
|
|
28
|
+
self,
|
|
29
|
+
*,
|
|
30
|
+
dialect: builtins.str = ...,
|
|
31
|
+
sqls: collections.abc.Iterable[builtins.str] | None = ...,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def ClearField(self, field_name: typing.Literal["dialect", b"dialect", "sqls", b"sqls"]) -> None: ...
|
|
34
|
+
|
|
35
|
+
global___ExtractTableReferencesRequest = ExtractTableReferencesRequest
|
|
36
|
+
|
|
37
|
+
@typing.final
|
|
38
|
+
class TableReference(google.protobuf.message.Message):
|
|
39
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
40
|
+
|
|
41
|
+
PARTS_FIELD_NUMBER: builtins.int
|
|
42
|
+
FQN_FIELD_NUMBER: builtins.int
|
|
43
|
+
fqn: builtins.str
|
|
44
|
+
"""Fully qualified, quoted and normalized name, e.g. "db"."schema"."table" """
|
|
45
|
+
@property
|
|
46
|
+
def parts(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
47
|
+
"""Normalized identifier names, e.g. [db, schema, table]"""
|
|
48
|
+
|
|
49
|
+
def __init__(
|
|
50
|
+
self,
|
|
51
|
+
*,
|
|
52
|
+
parts: collections.abc.Iterable[builtins.str] | None = ...,
|
|
53
|
+
fqn: builtins.str = ...,
|
|
54
|
+
) -> None: ...
|
|
55
|
+
def ClearField(self, field_name: typing.Literal["fqn", b"fqn", "parts", b"parts"]) -> None: ...
|
|
56
|
+
|
|
57
|
+
global___TableReference = TableReference
|
|
58
|
+
|
|
59
|
+
@typing.final
|
|
60
|
+
class SqlTableReferences(google.protobuf.message.Message):
|
|
61
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
62
|
+
|
|
63
|
+
PARSED_FIELD_NUMBER: builtins.int
|
|
64
|
+
REFERENCES_FIELD_NUMBER: builtins.int
|
|
65
|
+
parsed: builtins.bool
|
|
66
|
+
"""False if the SQL could not be parsed"""
|
|
67
|
+
@property
|
|
68
|
+
def references(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TableReference]: ...
|
|
69
|
+
def __init__(
|
|
70
|
+
self,
|
|
71
|
+
*,
|
|
72
|
+
parsed: builtins.bool = ...,
|
|
73
|
+
references: collections.abc.Iterable[global___TableReference] | None = ...,
|
|
74
|
+
) -> None: ...
|
|
75
|
+
def ClearField(self, field_name: typing.Literal["parsed", b"parsed", "references", b"references"]) -> None: ...
|
|
76
|
+
|
|
77
|
+
global___SqlTableReferences = SqlTableReferences
|
|
78
|
+
|
|
79
|
+
@typing.final
|
|
80
|
+
class ExtractTableReferencesResponse(google.protobuf.message.Message):
|
|
81
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
82
|
+
|
|
83
|
+
RESULTS_FIELD_NUMBER: builtins.int
|
|
84
|
+
@property
|
|
85
|
+
def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SqlTableReferences]:
|
|
86
|
+
"""One entry per request SQL, in request order"""
|
|
87
|
+
|
|
88
|
+
def __init__(
|
|
89
|
+
self,
|
|
90
|
+
*,
|
|
91
|
+
results: collections.abc.Iterable[global___SqlTableReferences] | None = ...,
|
|
92
|
+
) -> None: ...
|
|
93
|
+
def ClearField(self, field_name: typing.Literal["results", b"results"]) -> None: ...
|
|
94
|
+
|
|
95
|
+
global___ExtractTableReferencesResponse = ExtractTableReferencesResponse
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from query_cache_protobuf.query_cache.services import sql_analysis_service_pb2 as query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ ' but the generated code in query_cache_protobuf/query_cache/services/sql_analysis_service_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class SQLAnalysisStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.ExtractTableReferences = channel.unary_unary(
|
|
38
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
39
|
+
request_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
40
|
+
response_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class SQLAnalysisServicer(object):
|
|
45
|
+
"""Missing associated documentation comment in .proto file."""
|
|
46
|
+
|
|
47
|
+
def ExtractTableReferences(self, request, context):
|
|
48
|
+
"""Missing associated documentation comment in .proto file."""
|
|
49
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
50
|
+
context.set_details('Method not implemented!')
|
|
51
|
+
raise NotImplementedError('Method not implemented!')
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def add_SQLAnalysisServicer_to_server(servicer, server):
|
|
55
|
+
rpc_method_handlers = {
|
|
56
|
+
'ExtractTableReferences': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.ExtractTableReferences,
|
|
58
|
+
request_deserializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.FromString,
|
|
59
|
+
response_serializer=query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('com.fivetran.query_cache.SQLAnalysis', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class SQLAnalysis(object):
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
@staticmethod
|
|
73
|
+
def ExtractTableReferences(request,
|
|
74
|
+
target,
|
|
75
|
+
options=(),
|
|
76
|
+
channel_credentials=None,
|
|
77
|
+
call_credentials=None,
|
|
78
|
+
insecure=False,
|
|
79
|
+
compression=None,
|
|
80
|
+
wait_for_ready=None,
|
|
81
|
+
timeout=None,
|
|
82
|
+
metadata=None):
|
|
83
|
+
return grpc.experimental.unary_unary(
|
|
84
|
+
request,
|
|
85
|
+
target,
|
|
86
|
+
'/com.fivetran.query_cache.SQLAnalysis/ExtractTableReferences',
|
|
87
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesRequest.SerializeToString,
|
|
88
|
+
query__cache__protobuf_dot_query__cache_dot_services_dot_sql__analysis__service__pb2.ExtractTableReferencesResponse.FromString,
|
|
89
|
+
options,
|
|
90
|
+
channel_credentials,
|
|
91
|
+
insecure,
|
|
92
|
+
call_credentials,
|
|
93
|
+
compression,
|
|
94
|
+
wait_for_ready,
|
|
95
|
+
timeout,
|
|
96
|
+
metadata,
|
|
97
|
+
_registered_method=True)
|
|
File without changes
|
|
File without changes
|
{query_cache_protobuf-2.11.0 → query_cache_protobuf-2.12.0}/src/query_cache_protobuf/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|