Ejemplo n.º 1
0
 def get_schemas(self, connection_id, catalog=None, schemaPattern=None):
     request = requests_pb2.SchemasRequest()
     request.connection_id = connection_id
     if catalog is not None:
         request.catalog = catalog
     if schemaPattern is not None:
         request.schema_pattern = schemaPattern
     return self._apply(request)
Ejemplo n.º 2
0
 def get_schemas(self, connection_id, catalog=None, schemaPattern=None):
     request = requests_pb2.SchemasRequest()
     request.connection_id = connection_id
     if catalog is not None:
         request.catalog = catalog
     if schemaPattern is not None:
         request.schema_pattern = schemaPattern
     response_data = self._apply(request, 'ResultSetResponse')
     response = responses_pb2.ResultSetResponse()
     response.ParseFromString(response_data)
     return response