first commit
This commit is contained in:
@@ -0,0 +1,481 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
"""This module contains the implementation of a helper class for MySQL X
|
||||
Protobuf messages."""
|
||||
|
||||
try:
|
||||
ModuleNotFoundError
|
||||
except NameError:
|
||||
ModuleNotFoundError = ImportError
|
||||
|
||||
_SERVER_MESSAGES_TUPLES = (
|
||||
("Mysqlx.ServerMessages.Type.OK",
|
||||
"Mysqlx.Ok"),
|
||||
("Mysqlx.ServerMessages.Type.ERROR",
|
||||
"Mysqlx.Error"),
|
||||
("Mysqlx.ServerMessages.Type.CONN_CAPABILITIES",
|
||||
"Mysqlx.Connection.Capabilities"),
|
||||
("Mysqlx.ServerMessages.Type.SESS_AUTHENTICATE_CONTINUE",
|
||||
"Mysqlx.Session.AuthenticateContinue"),
|
||||
("Mysqlx.ServerMessages.Type.SESS_AUTHENTICATE_OK",
|
||||
"Mysqlx.Session.AuthenticateOk"),
|
||||
("Mysqlx.ServerMessages.Type.NOTICE",
|
||||
"Mysqlx.Notice.Frame"),
|
||||
("Mysqlx.ServerMessages.Type.RESULTSET_COLUMN_META_DATA",
|
||||
"Mysqlx.Resultset.ColumnMetaData"),
|
||||
("Mysqlx.ServerMessages.Type.RESULTSET_ROW",
|
||||
"Mysqlx.Resultset.Row"),
|
||||
("Mysqlx.ServerMessages.Type.RESULTSET_FETCH_DONE",
|
||||
"Mysqlx.Resultset.FetchDone"),
|
||||
("Mysqlx.ServerMessages.Type.RESULTSET_FETCH_SUSPENDED",
|
||||
"Mysqlx.Resultset.FetchSuspended"),
|
||||
("Mysqlx.ServerMessages.Type.RESULTSET_FETCH_DONE_MORE_RESULTSETS",
|
||||
"Mysqlx.Resultset.FetchDoneMoreResultsets"),
|
||||
("Mysqlx.ServerMessages.Type.SQL_STMT_EXECUTE_OK",
|
||||
"Mysqlx.Sql.StmtExecuteOk"),
|
||||
("Mysqlx.ServerMessages.Type.RESULTSET_FETCH_DONE_MORE_OUT_PARAMS",
|
||||
"Mysqlx.Resultset.FetchDoneMoreOutParams"),
|
||||
("Mysqlx.ServerMessages.Type.COMPRESSION",
|
||||
"Mysqlx.Connection.Compression"),
|
||||
)
|
||||
|
||||
PROTOBUF_VERSION = None
|
||||
PROTOBUF_REPEATED_TYPES = [list]
|
||||
|
||||
try:
|
||||
import _mysqlxpb
|
||||
SERVER_MESSAGES = dict([(int(_mysqlxpb.enum_value(key)), val)
|
||||
for key, val in _SERVER_MESSAGES_TUPLES])
|
||||
HAVE_MYSQLXPB_CEXT = True
|
||||
except ImportError:
|
||||
HAVE_MYSQLXPB_CEXT = False
|
||||
|
||||
from ..compat import PY3, NUMERIC_TYPES, STRING_TYPES, BYTE_TYPES
|
||||
from ..helpers import encode_to_bytes
|
||||
|
||||
try:
|
||||
from google import protobuf
|
||||
from google.protobuf import descriptor_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
from google.protobuf import descriptor_pool
|
||||
from google.protobuf import message_factory
|
||||
from google.protobuf.internal.containers import (
|
||||
RepeatedCompositeFieldContainer)
|
||||
try:
|
||||
from google.protobuf.pyext._message import (
|
||||
RepeatedCompositeContainer)
|
||||
PROTOBUF_REPEATED_TYPES.append(RepeatedCompositeContainer)
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
PROTOBUF_REPEATED_TYPES.append(RepeatedCompositeFieldContainer)
|
||||
if hasattr(protobuf, "__version__"):
|
||||
# Only Protobuf versions >=3.0.0 provide `__version__`
|
||||
PROTOBUF_VERSION = protobuf.__version__
|
||||
|
||||
from . import mysqlx_connection_pb2
|
||||
from . import mysqlx_crud_pb2
|
||||
from . import mysqlx_cursor_pb2
|
||||
from . import mysqlx_datatypes_pb2
|
||||
from . import mysqlx_expect_pb2
|
||||
from . import mysqlx_expr_pb2
|
||||
from . import mysqlx_notice_pb2
|
||||
from . import mysqlx_pb2
|
||||
from . import mysqlx_prepare_pb2
|
||||
from . import mysqlx_resultset_pb2
|
||||
from . import mysqlx_session_pb2
|
||||
from . import mysqlx_sql_pb2
|
||||
|
||||
# Dictionary with all messages descriptors
|
||||
_MESSAGES = {}
|
||||
|
||||
# Mysqlx
|
||||
for key, val in mysqlx_pb2.ClientMessages.Type.items():
|
||||
_MESSAGES["Mysqlx.ClientMessages.Type.{0}".format(key)] = val
|
||||
for key, val in mysqlx_pb2.ServerMessages.Type.items():
|
||||
_MESSAGES["Mysqlx.ServerMessages.Type.{0}".format(key)] = val
|
||||
for key, val in mysqlx_pb2.Error.Severity.items():
|
||||
_MESSAGES["Mysqlx.Error.Severity.{0}".format(key)] = val
|
||||
|
||||
# Mysqlx.Crud
|
||||
for key, val in mysqlx_crud_pb2.DataModel.items():
|
||||
_MESSAGES["Mysqlx.Crud.DataModel.{0}".format(key)] = val
|
||||
for key, val in mysqlx_crud_pb2.Find.RowLock.items():
|
||||
_MESSAGES["Mysqlx.Crud.Find.RowLock.{0}".format(key)] = val
|
||||
for key, val in mysqlx_crud_pb2.Order.Direction.items():
|
||||
_MESSAGES["Mysqlx.Crud.Order.Direction.{0}".format(key)] = val
|
||||
for key, val in mysqlx_crud_pb2.UpdateOperation.UpdateType.items():
|
||||
_MESSAGES["Mysqlx.Crud.UpdateOperation.UpdateType.{0}".format(key)] = val
|
||||
|
||||
# Mysqlx.Datatypes
|
||||
for key, val in mysqlx_datatypes_pb2.Scalar.Type.items():
|
||||
_MESSAGES["Mysqlx.Datatypes.Scalar.Type.{0}".format(key)] = val
|
||||
for key, val in mysqlx_datatypes_pb2.Any.Type.items():
|
||||
_MESSAGES["Mysqlx.Datatypes.Any.Type.{0}".format(key)] = val
|
||||
|
||||
# Mysqlx.Expect
|
||||
for key, val in mysqlx_expect_pb2.Open.Condition.ConditionOperation.items():
|
||||
_MESSAGES["Mysqlx.Expect.Open.Condition.ConditionOperation.{0}"
|
||||
"".format(key)] = val
|
||||
for key, val in mysqlx_expect_pb2.Open.Condition.Key.items():
|
||||
_MESSAGES["Mysqlx.Expect.Open.Condition.Key.{0}"
|
||||
"".format(key)] = val
|
||||
for key, val in mysqlx_expect_pb2.Open.CtxOperation.items():
|
||||
_MESSAGES["Mysqlx.Expect.Open.CtxOperation.{0}".format(key)] = val
|
||||
|
||||
# Mysqlx.Expr
|
||||
for key, val in mysqlx_expr_pb2.Expr.Type.items():
|
||||
_MESSAGES["Mysqlx.Expr.Expr.Type.{0}".format(key)] = val
|
||||
for key, val in mysqlx_expr_pb2.DocumentPathItem.Type.items():
|
||||
_MESSAGES["Mysqlx.Expr.DocumentPathItem.Type.{0}".format(key)] = val
|
||||
|
||||
# Mysqlx.Notice
|
||||
for key, val in mysqlx_notice_pb2.Frame.Scope.items():
|
||||
_MESSAGES["Mysqlx.Notice.Frame.Scope.{0}".format(key)] = val
|
||||
for key, val in mysqlx_notice_pb2.Warning.Level.items():
|
||||
_MESSAGES["Mysqlx.Notice.Warning.Level.{0}".format(key)] = val
|
||||
for key, val in mysqlx_notice_pb2.SessionStateChanged.Parameter.items():
|
||||
_MESSAGES["Mysqlx.Notice.SessionStateChanged.Parameter.{0}"
|
||||
"".format(key)] = val
|
||||
|
||||
# Mysql.Prepare
|
||||
for key, val in mysqlx_prepare_pb2.Prepare.OneOfMessage.Type.items():
|
||||
_MESSAGES["Mysqlx.Prepare.Prepare.OneOfMessage.Type.{0}"
|
||||
"".format(key)] = val
|
||||
|
||||
# Mysql.Resultset
|
||||
for key, val in mysqlx_resultset_pb2.ColumnMetaData.FieldType.items():
|
||||
_MESSAGES["Mysqlx.Resultset.ColumnMetaData.FieldType.{0}".format(key)] = val
|
||||
|
||||
# Add messages to the descriptor pool
|
||||
_DESCRIPTOR_DB = descriptor_database.DescriptorDatabase()
|
||||
_DESCRIPTOR_POOL = descriptor_pool.DescriptorPool(_DESCRIPTOR_DB)
|
||||
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_connection_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_crud_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_cursor_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_datatypes_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_expect_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_expr_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_notice_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_prepare_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_resultset_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_session_pb2.DESCRIPTOR.serialized_pb))
|
||||
_DESCRIPTOR_DB.Add(descriptor_pb2.FileDescriptorProto.FromString(
|
||||
mysqlx_sql_pb2.DESCRIPTOR.serialized_pb))
|
||||
|
||||
SERVER_MESSAGES = dict(
|
||||
[(_MESSAGES[key], val) for key, val in _SERVER_MESSAGES_TUPLES]
|
||||
)
|
||||
HAVE_PROTOBUF = True
|
||||
HAVE_PROTOBUF_ERROR = None
|
||||
|
||||
class _mysqlxpb_pure(object):
|
||||
"""This class implements the methods in pure Python used by the
|
||||
_mysqlxpb C++ extension."""
|
||||
|
||||
factory = message_factory.MessageFactory()
|
||||
|
||||
@staticmethod
|
||||
def new_message(name):
|
||||
cls = _mysqlxpb_pure.factory.GetPrototype(
|
||||
_DESCRIPTOR_POOL.FindMessageTypeByName(name))
|
||||
return cls()
|
||||
|
||||
@staticmethod
|
||||
def enum_value(key):
|
||||
return _MESSAGES[key]
|
||||
|
||||
@staticmethod
|
||||
def serialize_message(msg):
|
||||
return msg.SerializeToString()
|
||||
|
||||
@staticmethod
|
||||
def serialize_partial_message(msg):
|
||||
return msg.SerializePartialToString()
|
||||
|
||||
@staticmethod
|
||||
def parse_message(msg_type_name, payload):
|
||||
msg = _mysqlxpb_pure.new_message(msg_type_name)
|
||||
msg.ParseFromString(payload)
|
||||
return msg
|
||||
|
||||
@staticmethod
|
||||
def parse_server_message(msg_type, payload):
|
||||
msg_type_name = SERVER_MESSAGES.get(msg_type)
|
||||
if not msg_type_name:
|
||||
raise ValueError("Unknown msg_type: {0}".format(msg_type))
|
||||
msg = _mysqlxpb_pure.new_message(msg_type_name)
|
||||
msg.ParseFromString(payload)
|
||||
return msg
|
||||
except (ImportError, ModuleNotFoundError, SyntaxError, TypeError) as err:
|
||||
HAVE_PROTOBUF = False
|
||||
HAVE_PROTOBUF_ERROR = err if PROTOBUF_VERSION is not None \
|
||||
else "Protobuf >=3.0.0 is required"
|
||||
if not HAVE_MYSQLXPB_CEXT:
|
||||
raise ImportError("Protobuf is not available: {}"
|
||||
"".format(HAVE_PROTOBUF_ERROR))
|
||||
|
||||
CRUD_PREPARE_MAPPING = {
|
||||
"Mysqlx.ClientMessages.Type.CRUD_FIND": (
|
||||
"Mysqlx.Prepare.Prepare.OneOfMessage.Type.FIND", "find"),
|
||||
"Mysqlx.ClientMessages.Type.CRUD_INSERT": (
|
||||
"Mysqlx.Prepare.Prepare.OneOfMessage.Type.INSERT", "insert"),
|
||||
"Mysqlx.ClientMessages.Type.CRUD_UPDATE": (
|
||||
"Mysqlx.Prepare.Prepare.OneOfMessage.Type.UPDATE", "update"),
|
||||
"Mysqlx.ClientMessages.Type.CRUD_DELETE": (
|
||||
"Mysqlx.Prepare.Prepare.OneOfMessage.Type.DELETE", "delete"),
|
||||
"Mysqlx.ClientMessages.Type.SQL_STMT_EXECUTE": (
|
||||
"Mysqlx.Prepare.Prepare.OneOfMessage.Type.STMT", "stmt_execute")
|
||||
}
|
||||
|
||||
|
||||
class Protobuf(object):
|
||||
"""Protobuf class acts as a container of the Protobuf message class.
|
||||
It allows the switch between the C extension and pure Python implementation
|
||||
message handlers, by patching the `mysqlxpb` class attribute.
|
||||
"""
|
||||
mysqlxpb = _mysqlxpb if HAVE_MYSQLXPB_CEXT else _mysqlxpb_pure
|
||||
use_pure = False if HAVE_MYSQLXPB_CEXT else True
|
||||
|
||||
@staticmethod
|
||||
def set_use_pure(use_pure):
|
||||
"""Sets whether to use the C extension or pure Python implementation.
|
||||
|
||||
Args:
|
||||
use_pure (bool): `True` to use pure Python implementation.
|
||||
"""
|
||||
if use_pure and not HAVE_PROTOBUF:
|
||||
raise ImportError("Protobuf is not available: {}"
|
||||
"".format(HAVE_PROTOBUF_ERROR))
|
||||
elif not use_pure and not HAVE_MYSQLXPB_CEXT:
|
||||
raise ImportError("MySQL X Protobuf C extension is not available")
|
||||
Protobuf.mysqlxpb = _mysqlxpb_pure if use_pure else _mysqlxpb
|
||||
Protobuf.use_pure = use_pure
|
||||
|
||||
|
||||
class Message(object):
|
||||
"""Helper class for interfacing with the MySQL X Protobuf extension.
|
||||
|
||||
Args:
|
||||
msg_type_name (string): Protobuf type name.
|
||||
**kwargs: Arbitrary keyword arguments with values for the message.
|
||||
"""
|
||||
def __init__(self, msg_type_name=None, **kwargs):
|
||||
self.__dict__["_msg"] = Protobuf.mysqlxpb.new_message(msg_type_name) \
|
||||
if msg_type_name else None
|
||||
for key, value in kwargs.items():
|
||||
self.__setattr__(key, value)
|
||||
|
||||
def __setattr__(self, name, value):
|
||||
if Protobuf.use_pure:
|
||||
if PY3 and isinstance(value, STRING_TYPES):
|
||||
setattr(self._msg, name, encode_to_bytes(value))
|
||||
elif isinstance(value, (NUMERIC_TYPES, STRING_TYPES, BYTE_TYPES)):
|
||||
setattr(self._msg, name, value)
|
||||
elif isinstance(value, list):
|
||||
getattr(self._msg, name).extend(value)
|
||||
elif isinstance(value, Message):
|
||||
getattr(self._msg, name).MergeFrom(value.get_message())
|
||||
else:
|
||||
getattr(self._msg, name).MergeFrom(value)
|
||||
else:
|
||||
self._msg[name] = value.get_message() \
|
||||
if isinstance(value, Message) else value
|
||||
|
||||
def __getattr__(self, name):
|
||||
try:
|
||||
return self._msg[name] if not Protobuf.use_pure \
|
||||
else getattr(self._msg, name)
|
||||
except KeyError:
|
||||
raise AttributeError
|
||||
|
||||
def __setitem__(self, name, value):
|
||||
self.__setattr__(name, value)
|
||||
|
||||
def __getitem__(self, name):
|
||||
return self.__getattr__(name)
|
||||
|
||||
def get(self, name, default=None):
|
||||
"""Returns the value of an element of the message dictionary.
|
||||
|
||||
Args:
|
||||
name (string): Key name.
|
||||
default (object): The default value if the key does not exists.
|
||||
|
||||
Returns:
|
||||
object: The value of the provided key name.
|
||||
"""
|
||||
return self.__dict__["_msg"].get(name, default) \
|
||||
if not Protobuf.use_pure \
|
||||
else getattr(self.__dict__["_msg"], name, default)
|
||||
|
||||
def set_message(self, msg):
|
||||
"""Sets the message.
|
||||
|
||||
Args:
|
||||
msg (dict): Dictionary representing a message.
|
||||
"""
|
||||
self.__dict__["_msg"] = msg
|
||||
|
||||
def get_message(self):
|
||||
"""Returns the dictionary representing a message containing parsed
|
||||
data.
|
||||
|
||||
Returns:
|
||||
dict: The dictionary representing a message containing parsed data.
|
||||
"""
|
||||
return self.__dict__["_msg"]
|
||||
|
||||
def serialize_to_string(self):
|
||||
"""Serializes a message to a string.
|
||||
|
||||
Returns:
|
||||
str: A string representing a message containing parsed data.
|
||||
"""
|
||||
return Protobuf.mysqlxpb.serialize_message(self._msg)
|
||||
|
||||
def serialize_partial_to_string(self):
|
||||
"""Serializes the protocol message to a binary string.
|
||||
|
||||
This method is similar to serialize_to_string but doesn't check if the
|
||||
message is initialized.
|
||||
|
||||
Returns:
|
||||
str: A string representation of the partial message.
|
||||
"""
|
||||
return Protobuf.mysqlxpb.serialize_partial_message(self._msg)
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""string: Message type name."""
|
||||
return self._msg["_mysqlxpb_type_name"] if not Protobuf.use_pure \
|
||||
else self._msg.DESCRIPTOR.full_name
|
||||
|
||||
@staticmethod
|
||||
def parse(msg_type_name, payload):
|
||||
"""Creates a new message, initialized with parsed data.
|
||||
|
||||
Args:
|
||||
msg_type_name (string): Message type name.
|
||||
payload (string): Serialized message data.
|
||||
|
||||
Returns:
|
||||
dict: The dictionary representing a message containing parsed data.
|
||||
|
||||
.. versionadded:: 8.0.21
|
||||
"""
|
||||
return Protobuf.mysqlxpb.parse_message(msg_type_name, payload)
|
||||
|
||||
@staticmethod
|
||||
def byte_size(msg):
|
||||
"""Returns the size of the message in bytes.
|
||||
|
||||
Args:
|
||||
msg (mysqlx.protobuf.Message): MySQL X Protobuf Message.
|
||||
|
||||
Returns:
|
||||
int: Size of the message in bytes.
|
||||
|
||||
.. versionadded:: 8.0.21
|
||||
"""
|
||||
return msg.ByteSize() if Protobuf.use_pure \
|
||||
else len(encode_to_bytes(msg.serialize_to_string()))
|
||||
|
||||
@staticmethod
|
||||
def parse_from_server(msg_type, payload):
|
||||
"""Creates a new server-side message, initialized with parsed data.
|
||||
|
||||
Args:
|
||||
msg_type (int): Message type.
|
||||
payload (string): Serialized message data.
|
||||
|
||||
Returns:
|
||||
dict: The dictionary representing a message containing parsed data.
|
||||
"""
|
||||
return Protobuf.mysqlxpb.parse_server_message(msg_type, payload)
|
||||
|
||||
@classmethod
|
||||
def from_message(cls, msg_type_name, payload):
|
||||
"""Creates a new message, initialized with parsed data and returns a
|
||||
:class:`mysqlx.protobuf.Message` object.
|
||||
|
||||
Args:
|
||||
msg_type_name (string): Message type name.
|
||||
payload (string): Serialized message data.
|
||||
|
||||
Returns:
|
||||
mysqlx.protobuf.Message: The Message representing a message
|
||||
containing parsed data.
|
||||
"""
|
||||
msg = cls()
|
||||
msg.set_message(Protobuf.mysqlxpb.parse_message(msg_type_name, payload))
|
||||
return msg
|
||||
|
||||
@classmethod
|
||||
def from_server_message(cls, msg_type, payload):
|
||||
"""Creates a new server-side message, initialized with parsed data and
|
||||
returns a :class:`mysqlx.protobuf.Message` object.
|
||||
|
||||
Args:
|
||||
msg_type (int): Message type.
|
||||
payload (string): Serialized message data.
|
||||
|
||||
Returns:
|
||||
mysqlx.protobuf.Message: The Message representing a message
|
||||
containing parsed data.
|
||||
"""
|
||||
msg = cls()
|
||||
msg.set_message(
|
||||
Protobuf.mysqlxpb.parse_server_message(msg_type, payload))
|
||||
return msg
|
||||
|
||||
|
||||
def mysqlxpb_enum(name):
|
||||
"""Returns the value of a MySQL X Protobuf enumerator.
|
||||
|
||||
Args:
|
||||
name (string): MySQL X Protobuf numerator name.
|
||||
|
||||
Returns:
|
||||
int: Value of the enumerator.
|
||||
"""
|
||||
return Protobuf.mysqlxpb.enum_value(name)
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,316 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_connection.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from mysqlx.protobuf import mysqlx_datatypes_pb2 as mysqlx__datatypes__pb2
|
||||
from mysqlx.protobuf import mysqlx_pb2 as mysqlx__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_connection.proto',
|
||||
package='Mysqlx.Connection',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x17mysqlx_connection.proto\x12\x11Mysqlx.Connection\x1a\x16mysqlx_datatypes.proto\x1a\x0cmysqlx.proto\"@\n\nCapability\x12\x0c\n\x04name\x18\x01 \x02(\t\x12$\n\x05value\x18\x02 \x02(\x0b\x32\x15.Mysqlx.Datatypes.Any\"C\n\x0c\x43\x61pabilities\x12\x33\n\x0c\x63\x61pabilities\x18\x01 \x03(\x0b\x32\x1d.Mysqlx.Connection.Capability\"\x11\n\x0f\x43\x61pabilitiesGet\"H\n\x0f\x43\x61pabilitiesSet\x12\x35\n\x0c\x63\x61pabilities\x18\x01 \x02(\x0b\x32\x1f.Mysqlx.Connection.Capabilities\"\x07\n\x05\x43lose\"\xa5\x01\n\x0b\x43ompression\x12\x19\n\x11uncompressed_size\x18\x01 \x01(\x04\x12\x34\n\x0fserver_messages\x18\x02 \x01(\x0e\x32\x1b.Mysqlx.ServerMessages.Type\x12\x34\n\x0f\x63lient_messages\x18\x03 \x01(\x0e\x32\x1b.Mysqlx.ClientMessages.Type\x12\x0f\n\x07payload\x18\x04 \x02(\x0c\x42\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
,
|
||||
dependencies=[mysqlx__datatypes__pb2.DESCRIPTOR,mysqlx__pb2.DESCRIPTOR,])
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
|
||||
_CAPABILITY = _descriptor.Descriptor(
|
||||
name='Capability',
|
||||
full_name='Mysqlx.Connection.Capability',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='Mysqlx.Connection.Capability.name', index=0,
|
||||
number=1, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Connection.Capability.value', index=1,
|
||||
number=2, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=84,
|
||||
serialized_end=148,
|
||||
)
|
||||
|
||||
|
||||
_CAPABILITIES = _descriptor.Descriptor(
|
||||
name='Capabilities',
|
||||
full_name='Mysqlx.Connection.Capabilities',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='capabilities', full_name='Mysqlx.Connection.Capabilities.capabilities', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=150,
|
||||
serialized_end=217,
|
||||
)
|
||||
|
||||
|
||||
_CAPABILITIESGET = _descriptor.Descriptor(
|
||||
name='CapabilitiesGet',
|
||||
full_name='Mysqlx.Connection.CapabilitiesGet',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=219,
|
||||
serialized_end=236,
|
||||
)
|
||||
|
||||
|
||||
_CAPABILITIESSET = _descriptor.Descriptor(
|
||||
name='CapabilitiesSet',
|
||||
full_name='Mysqlx.Connection.CapabilitiesSet',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='capabilities', full_name='Mysqlx.Connection.CapabilitiesSet.capabilities', index=0,
|
||||
number=1, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=238,
|
||||
serialized_end=310,
|
||||
)
|
||||
|
||||
|
||||
_CLOSE = _descriptor.Descriptor(
|
||||
name='Close',
|
||||
full_name='Mysqlx.Connection.Close',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=312,
|
||||
serialized_end=319,
|
||||
)
|
||||
|
||||
|
||||
_COMPRESSION = _descriptor.Descriptor(
|
||||
name='Compression',
|
||||
full_name='Mysqlx.Connection.Compression',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='uncompressed_size', full_name='Mysqlx.Connection.Compression.uncompressed_size', index=0,
|
||||
number=1, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='server_messages', full_name='Mysqlx.Connection.Compression.server_messages', index=1,
|
||||
number=2, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='client_messages', full_name='Mysqlx.Connection.Compression.client_messages', index=2,
|
||||
number=3, type=14, cpp_type=8, label=1,
|
||||
has_default_value=False, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='payload', full_name='Mysqlx.Connection.Compression.payload', index=3,
|
||||
number=4, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=322,
|
||||
serialized_end=487,
|
||||
)
|
||||
|
||||
_CAPABILITY.fields_by_name['value'].message_type = mysqlx__datatypes__pb2._ANY
|
||||
_CAPABILITIES.fields_by_name['capabilities'].message_type = _CAPABILITY
|
||||
_CAPABILITIESSET.fields_by_name['capabilities'].message_type = _CAPABILITIES
|
||||
_COMPRESSION.fields_by_name['server_messages'].enum_type = mysqlx__pb2._SERVERMESSAGES_TYPE
|
||||
_COMPRESSION.fields_by_name['client_messages'].enum_type = mysqlx__pb2._CLIENTMESSAGES_TYPE
|
||||
DESCRIPTOR.message_types_by_name['Capability'] = _CAPABILITY
|
||||
DESCRIPTOR.message_types_by_name['Capabilities'] = _CAPABILITIES
|
||||
DESCRIPTOR.message_types_by_name['CapabilitiesGet'] = _CAPABILITIESGET
|
||||
DESCRIPTOR.message_types_by_name['CapabilitiesSet'] = _CAPABILITIESSET
|
||||
DESCRIPTOR.message_types_by_name['Close'] = _CLOSE
|
||||
DESCRIPTOR.message_types_by_name['Compression'] = _COMPRESSION
|
||||
|
||||
Capability = _reflection.GeneratedProtocolMessageType('Capability', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CAPABILITY,
|
||||
__module__ = 'mysqlx_connection_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Connection.Capability)
|
||||
))
|
||||
_sym_db.RegisterMessage(Capability)
|
||||
|
||||
Capabilities = _reflection.GeneratedProtocolMessageType('Capabilities', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CAPABILITIES,
|
||||
__module__ = 'mysqlx_connection_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Connection.Capabilities)
|
||||
))
|
||||
_sym_db.RegisterMessage(Capabilities)
|
||||
|
||||
CapabilitiesGet = _reflection.GeneratedProtocolMessageType('CapabilitiesGet', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CAPABILITIESGET,
|
||||
__module__ = 'mysqlx_connection_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Connection.CapabilitiesGet)
|
||||
))
|
||||
_sym_db.RegisterMessage(CapabilitiesGet)
|
||||
|
||||
CapabilitiesSet = _reflection.GeneratedProtocolMessageType('CapabilitiesSet', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CAPABILITIESSET,
|
||||
__module__ = 'mysqlx_connection_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Connection.CapabilitiesSet)
|
||||
))
|
||||
_sym_db.RegisterMessage(CapabilitiesSet)
|
||||
|
||||
Close = _reflection.GeneratedProtocolMessageType('Close', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLOSE,
|
||||
__module__ = 'mysqlx_connection_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Connection.Close)
|
||||
))
|
||||
_sym_db.RegisterMessage(Close)
|
||||
|
||||
Compression = _reflection.GeneratedProtocolMessageType('Compression', (_message.Message,), dict(
|
||||
DESCRIPTOR = _COMPRESSION,
|
||||
__module__ = 'mysqlx_connection_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Connection.Compression)
|
||||
))
|
||||
_sym_db.RegisterMessage(Compression)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,269 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_cursor.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from mysqlx.protobuf import mysqlx_prepare_pb2 as mysqlx__prepare__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_cursor.proto',
|
||||
package='Mysqlx.Cursor',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x13mysqlx_cursor.proto\x12\rMysqlx.Cursor\x1a\x14mysqlx_prepare.proto\"\xf2\x01\n\x04Open\x12\x11\n\tcursor_id\x18\x01 \x02(\r\x12.\n\x04stmt\x18\x04 \x02(\x0b\x32 .Mysqlx.Cursor.Open.OneOfMessage\x12\x12\n\nfetch_rows\x18\x05 \x01(\x04\x1a\x92\x01\n\x0cOneOfMessage\x12\x33\n\x04type\x18\x01 \x02(\x0e\x32%.Mysqlx.Cursor.Open.OneOfMessage.Type\x12\x30\n\x0fprepare_execute\x18\x02 \x01(\x0b\x32\x17.Mysqlx.Prepare.Execute\"\x1b\n\x04Type\x12\x13\n\x0fPREPARE_EXECUTE\x10\x00\".\n\x05\x46\x65tch\x12\x11\n\tcursor_id\x18\x01 \x02(\r\x12\x12\n\nfetch_rows\x18\x05 \x01(\x04\"\x1a\n\x05\x43lose\x12\x11\n\tcursor_id\x18\x01 \x02(\rB\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
,
|
||||
dependencies=[mysqlx__prepare__pb2.DESCRIPTOR,])
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_OPEN_ONEOFMESSAGE_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Cursor.Open.OneOfMessage.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='PREPARE_EXECUTE', index=0, number=0,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=276,
|
||||
serialized_end=303,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_OPEN_ONEOFMESSAGE_TYPE)
|
||||
|
||||
|
||||
_OPEN_ONEOFMESSAGE = _descriptor.Descriptor(
|
||||
name='OneOfMessage',
|
||||
full_name='Mysqlx.Cursor.Open.OneOfMessage',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Cursor.Open.OneOfMessage.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='prepare_execute', full_name='Mysqlx.Cursor.Open.OneOfMessage.prepare_execute', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_OPEN_ONEOFMESSAGE_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=157,
|
||||
serialized_end=303,
|
||||
)
|
||||
|
||||
_OPEN = _descriptor.Descriptor(
|
||||
name='Open',
|
||||
full_name='Mysqlx.Cursor.Open',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cursor_id', full_name='Mysqlx.Cursor.Open.cursor_id', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stmt', full_name='Mysqlx.Cursor.Open.stmt', index=1,
|
||||
number=4, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='fetch_rows', full_name='Mysqlx.Cursor.Open.fetch_rows', index=2,
|
||||
number=5, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_OPEN_ONEOFMESSAGE, ],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=61,
|
||||
serialized_end=303,
|
||||
)
|
||||
|
||||
|
||||
_FETCH = _descriptor.Descriptor(
|
||||
name='Fetch',
|
||||
full_name='Mysqlx.Cursor.Fetch',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cursor_id', full_name='Mysqlx.Cursor.Fetch.cursor_id', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='fetch_rows', full_name='Mysqlx.Cursor.Fetch.fetch_rows', index=1,
|
||||
number=5, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=305,
|
||||
serialized_end=351,
|
||||
)
|
||||
|
||||
|
||||
_CLOSE = _descriptor.Descriptor(
|
||||
name='Close',
|
||||
full_name='Mysqlx.Cursor.Close',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cursor_id', full_name='Mysqlx.Cursor.Close.cursor_id', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=353,
|
||||
serialized_end=379,
|
||||
)
|
||||
|
||||
_OPEN_ONEOFMESSAGE.fields_by_name['type'].enum_type = _OPEN_ONEOFMESSAGE_TYPE
|
||||
_OPEN_ONEOFMESSAGE.fields_by_name['prepare_execute'].message_type = mysqlx__prepare__pb2._EXECUTE
|
||||
_OPEN_ONEOFMESSAGE.containing_type = _OPEN
|
||||
_OPEN_ONEOFMESSAGE_TYPE.containing_type = _OPEN_ONEOFMESSAGE
|
||||
_OPEN.fields_by_name['stmt'].message_type = _OPEN_ONEOFMESSAGE
|
||||
DESCRIPTOR.message_types_by_name['Open'] = _OPEN
|
||||
DESCRIPTOR.message_types_by_name['Fetch'] = _FETCH
|
||||
DESCRIPTOR.message_types_by_name['Close'] = _CLOSE
|
||||
|
||||
Open = _reflection.GeneratedProtocolMessageType('Open', (_message.Message,), dict(
|
||||
|
||||
OneOfMessage = _reflection.GeneratedProtocolMessageType('OneOfMessage', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OPEN_ONEOFMESSAGE,
|
||||
__module__ = 'mysqlx_cursor_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Cursor.Open.OneOfMessage)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _OPEN,
|
||||
__module__ = 'mysqlx_cursor_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Cursor.Open)
|
||||
))
|
||||
_sym_db.RegisterMessage(Open)
|
||||
_sym_db.RegisterMessage(Open.OneOfMessage)
|
||||
|
||||
Fetch = _reflection.GeneratedProtocolMessageType('Fetch', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FETCH,
|
||||
__module__ = 'mysqlx_cursor_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Cursor.Fetch)
|
||||
))
|
||||
_sym_db.RegisterMessage(Fetch)
|
||||
|
||||
Close = _reflection.GeneratedProtocolMessageType('Close', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLOSE,
|
||||
__module__ = 'mysqlx_cursor_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Cursor.Close)
|
||||
))
|
||||
_sym_db.RegisterMessage(Close)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,510 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_datatypes.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_datatypes.proto',
|
||||
package='Mysqlx.Datatypes',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x16mysqlx_datatypes.proto\x12\x10Mysqlx.Datatypes\"\xc6\x03\n\x06Scalar\x12+\n\x04type\x18\x01 \x02(\x0e\x32\x1d.Mysqlx.Datatypes.Scalar.Type\x12\x14\n\x0cv_signed_int\x18\x02 \x01(\x12\x12\x16\n\x0ev_unsigned_int\x18\x03 \x01(\x04\x12\x31\n\x08v_octets\x18\x05 \x01(\x0b\x32\x1f.Mysqlx.Datatypes.Scalar.Octets\x12\x10\n\x08v_double\x18\x06 \x01(\x01\x12\x0f\n\x07v_float\x18\x07 \x01(\x02\x12\x0e\n\x06v_bool\x18\x08 \x01(\x08\x12\x31\n\x08v_string\x18\t \x01(\x0b\x32\x1f.Mysqlx.Datatypes.Scalar.String\x1a*\n\x06String\x12\r\n\x05value\x18\x01 \x02(\x0c\x12\x11\n\tcollation\x18\x02 \x01(\x04\x1a-\n\x06Octets\x12\r\n\x05value\x18\x01 \x02(\x0c\x12\x14\n\x0c\x63ontent_type\x18\x02 \x01(\r\"m\n\x04Type\x12\n\n\x06V_SINT\x10\x01\x12\n\n\x06V_UINT\x10\x02\x12\n\n\x06V_NULL\x10\x03\x12\x0c\n\x08V_OCTETS\x10\x04\x12\x0c\n\x08V_DOUBLE\x10\x05\x12\x0b\n\x07V_FLOAT\x10\x06\x12\n\n\x06V_BOOL\x10\x07\x12\x0c\n\x08V_STRING\x10\x08\"}\n\x06Object\x12\x31\n\x03\x66ld\x18\x01 \x03(\x0b\x32$.Mysqlx.Datatypes.Object.ObjectField\x1a@\n\x0bObjectField\x12\x0b\n\x03key\x18\x01 \x02(\t\x12$\n\x05value\x18\x02 \x02(\x0b\x32\x15.Mysqlx.Datatypes.Any\"-\n\x05\x41rray\x12$\n\x05value\x18\x01 \x03(\x0b\x32\x15.Mysqlx.Datatypes.Any\"\xd3\x01\n\x03\x41ny\x12(\n\x04type\x18\x01 \x02(\x0e\x32\x1a.Mysqlx.Datatypes.Any.Type\x12(\n\x06scalar\x18\x02 \x01(\x0b\x32\x18.Mysqlx.Datatypes.Scalar\x12%\n\x03obj\x18\x03 \x01(\x0b\x32\x18.Mysqlx.Datatypes.Object\x12&\n\x05\x61rray\x18\x04 \x01(\x0b\x32\x17.Mysqlx.Datatypes.Array\")\n\x04Type\x12\n\n\x06SCALAR\x10\x01\x12\n\n\x06OBJECT\x10\x02\x12\t\n\x05\x41RRAY\x10\x03\x42\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
)
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_SCALAR_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Datatypes.Scalar.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_SINT', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_UINT', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_NULL', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_OCTETS', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_DOUBLE', index=4, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_FLOAT', index=5, number=6,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_BOOL', index=6, number=7,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='V_STRING', index=7, number=8,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=390,
|
||||
serialized_end=499,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SCALAR_TYPE)
|
||||
|
||||
_ANY_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Datatypes.Any.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SCALAR', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='OBJECT', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ARRAY', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=846,
|
||||
serialized_end=887,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_ANY_TYPE)
|
||||
|
||||
|
||||
_SCALAR_STRING = _descriptor.Descriptor(
|
||||
name='String',
|
||||
full_name='Mysqlx.Datatypes.Scalar.String',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Datatypes.Scalar.String.value', index=0,
|
||||
number=1, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='collation', full_name='Mysqlx.Datatypes.Scalar.String.collation', index=1,
|
||||
number=2, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=299,
|
||||
serialized_end=341,
|
||||
)
|
||||
|
||||
_SCALAR_OCTETS = _descriptor.Descriptor(
|
||||
name='Octets',
|
||||
full_name='Mysqlx.Datatypes.Scalar.Octets',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Datatypes.Scalar.Octets.value', index=0,
|
||||
number=1, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='content_type', full_name='Mysqlx.Datatypes.Scalar.Octets.content_type', index=1,
|
||||
number=2, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=343,
|
||||
serialized_end=388,
|
||||
)
|
||||
|
||||
_SCALAR = _descriptor.Descriptor(
|
||||
name='Scalar',
|
||||
full_name='Mysqlx.Datatypes.Scalar',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Datatypes.Scalar.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='v_signed_int', full_name='Mysqlx.Datatypes.Scalar.v_signed_int', index=1,
|
||||
number=2, type=18, cpp_type=2, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='v_unsigned_int', full_name='Mysqlx.Datatypes.Scalar.v_unsigned_int', index=2,
|
||||
number=3, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='v_octets', full_name='Mysqlx.Datatypes.Scalar.v_octets', index=3,
|
||||
number=5, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='v_double', full_name='Mysqlx.Datatypes.Scalar.v_double', index=4,
|
||||
number=6, type=1, cpp_type=5, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='v_float', full_name='Mysqlx.Datatypes.Scalar.v_float', index=5,
|
||||
number=7, type=2, cpp_type=6, label=1,
|
||||
has_default_value=False, default_value=float(0),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='v_bool', full_name='Mysqlx.Datatypes.Scalar.v_bool', index=6,
|
||||
number=8, type=8, cpp_type=7, label=1,
|
||||
has_default_value=False, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='v_string', full_name='Mysqlx.Datatypes.Scalar.v_string', index=7,
|
||||
number=9, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_SCALAR_STRING, _SCALAR_OCTETS, ],
|
||||
enum_types=[
|
||||
_SCALAR_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=45,
|
||||
serialized_end=499,
|
||||
)
|
||||
|
||||
|
||||
_OBJECT_OBJECTFIELD = _descriptor.Descriptor(
|
||||
name='ObjectField',
|
||||
full_name='Mysqlx.Datatypes.Object.ObjectField',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='key', full_name='Mysqlx.Datatypes.Object.ObjectField.key', index=0,
|
||||
number=1, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Datatypes.Object.ObjectField.value', index=1,
|
||||
number=2, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=562,
|
||||
serialized_end=626,
|
||||
)
|
||||
|
||||
_OBJECT = _descriptor.Descriptor(
|
||||
name='Object',
|
||||
full_name='Mysqlx.Datatypes.Object',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='fld', full_name='Mysqlx.Datatypes.Object.fld', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_OBJECT_OBJECTFIELD, ],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=501,
|
||||
serialized_end=626,
|
||||
)
|
||||
|
||||
|
||||
_ARRAY = _descriptor.Descriptor(
|
||||
name='Array',
|
||||
full_name='Mysqlx.Datatypes.Array',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Datatypes.Array.value', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=628,
|
||||
serialized_end=673,
|
||||
)
|
||||
|
||||
|
||||
_ANY = _descriptor.Descriptor(
|
||||
name='Any',
|
||||
full_name='Mysqlx.Datatypes.Any',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Datatypes.Any.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='scalar', full_name='Mysqlx.Datatypes.Any.scalar', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='obj', full_name='Mysqlx.Datatypes.Any.obj', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='array', full_name='Mysqlx.Datatypes.Any.array', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_ANY_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=676,
|
||||
serialized_end=887,
|
||||
)
|
||||
|
||||
_SCALAR_STRING.containing_type = _SCALAR
|
||||
_SCALAR_OCTETS.containing_type = _SCALAR
|
||||
_SCALAR.fields_by_name['type'].enum_type = _SCALAR_TYPE
|
||||
_SCALAR.fields_by_name['v_octets'].message_type = _SCALAR_OCTETS
|
||||
_SCALAR.fields_by_name['v_string'].message_type = _SCALAR_STRING
|
||||
_SCALAR_TYPE.containing_type = _SCALAR
|
||||
_OBJECT_OBJECTFIELD.fields_by_name['value'].message_type = _ANY
|
||||
_OBJECT_OBJECTFIELD.containing_type = _OBJECT
|
||||
_OBJECT.fields_by_name['fld'].message_type = _OBJECT_OBJECTFIELD
|
||||
_ARRAY.fields_by_name['value'].message_type = _ANY
|
||||
_ANY.fields_by_name['type'].enum_type = _ANY_TYPE
|
||||
_ANY.fields_by_name['scalar'].message_type = _SCALAR
|
||||
_ANY.fields_by_name['obj'].message_type = _OBJECT
|
||||
_ANY.fields_by_name['array'].message_type = _ARRAY
|
||||
_ANY_TYPE.containing_type = _ANY
|
||||
DESCRIPTOR.message_types_by_name['Scalar'] = _SCALAR
|
||||
DESCRIPTOR.message_types_by_name['Object'] = _OBJECT
|
||||
DESCRIPTOR.message_types_by_name['Array'] = _ARRAY
|
||||
DESCRIPTOR.message_types_by_name['Any'] = _ANY
|
||||
|
||||
Scalar = _reflection.GeneratedProtocolMessageType('Scalar', (_message.Message,), dict(
|
||||
|
||||
String = _reflection.GeneratedProtocolMessageType('String', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SCALAR_STRING,
|
||||
__module__ = 'mysqlx_datatypes_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar.String)
|
||||
))
|
||||
,
|
||||
|
||||
Octets = _reflection.GeneratedProtocolMessageType('Octets', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SCALAR_OCTETS,
|
||||
__module__ = 'mysqlx_datatypes_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar.Octets)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _SCALAR,
|
||||
__module__ = 'mysqlx_datatypes_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Scalar)
|
||||
))
|
||||
_sym_db.RegisterMessage(Scalar)
|
||||
_sym_db.RegisterMessage(Scalar.String)
|
||||
_sym_db.RegisterMessage(Scalar.Octets)
|
||||
|
||||
Object = _reflection.GeneratedProtocolMessageType('Object', (_message.Message,), dict(
|
||||
|
||||
ObjectField = _reflection.GeneratedProtocolMessageType('ObjectField', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OBJECT_OBJECTFIELD,
|
||||
__module__ = 'mysqlx_datatypes_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Object.ObjectField)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _OBJECT,
|
||||
__module__ = 'mysqlx_datatypes_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Object)
|
||||
))
|
||||
_sym_db.RegisterMessage(Object)
|
||||
_sym_db.RegisterMessage(Object.ObjectField)
|
||||
|
||||
Array = _reflection.GeneratedProtocolMessageType('Array', (_message.Message,), dict(
|
||||
DESCRIPTOR = _ARRAY,
|
||||
__module__ = 'mysqlx_datatypes_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Array)
|
||||
))
|
||||
_sym_db.RegisterMessage(Array)
|
||||
|
||||
Any = _reflection.GeneratedProtocolMessageType('Any', (_message.Message,), dict(
|
||||
DESCRIPTOR = _ANY,
|
||||
__module__ = 'mysqlx_datatypes_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Datatypes.Any)
|
||||
))
|
||||
_sym_db.RegisterMessage(Any)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,270 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_expect.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_expect.proto',
|
||||
package='Mysqlx.Expect',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x13mysqlx_expect.proto\x12\rMysqlx.Expect\"\xd0\x03\n\x04Open\x12\x42\n\x02op\x18\x01 \x01(\x0e\x32 .Mysqlx.Expect.Open.CtxOperation:\x14\x45XPECT_CTX_COPY_PREV\x12+\n\x04\x63ond\x18\x02 \x03(\x0b\x32\x1d.Mysqlx.Expect.Open.Condition\x1a\x96\x02\n\tCondition\x12\x15\n\rcondition_key\x18\x01 \x02(\r\x12\x17\n\x0f\x63ondition_value\x18\x02 \x01(\x0c\x12K\n\x02op\x18\x03 \x01(\x0e\x32\x30.Mysqlx.Expect.Open.Condition.ConditionOperation:\rEXPECT_OP_SET\"N\n\x03Key\x12\x13\n\x0f\x45XPECT_NO_ERROR\x10\x01\x12\x16\n\x12\x45XPECT_FIELD_EXIST\x10\x02\x12\x1a\n\x16\x45XPECT_DOCID_GENERATED\x10\x03\"<\n\x12\x43onditionOperation\x12\x11\n\rEXPECT_OP_SET\x10\x00\x12\x13\n\x0f\x45XPECT_OP_UNSET\x10\x01\">\n\x0c\x43txOperation\x12\x18\n\x14\x45XPECT_CTX_COPY_PREV\x10\x00\x12\x14\n\x10\x45XPECT_CTX_EMPTY\x10\x01\"\x07\n\x05\x43loseB\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
)
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_OPEN_CONDITION_KEY = _descriptor.EnumDescriptor(
|
||||
name='Key',
|
||||
full_name='Mysqlx.Expect.Open.Condition.Key',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_NO_ERROR', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_FIELD_EXIST', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_DOCID_GENERATED', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=299,
|
||||
serialized_end=377,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_OPEN_CONDITION_KEY)
|
||||
|
||||
_OPEN_CONDITION_CONDITIONOPERATION = _descriptor.EnumDescriptor(
|
||||
name='ConditionOperation',
|
||||
full_name='Mysqlx.Expect.Open.Condition.ConditionOperation',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_OP_SET', index=0, number=0,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_OP_UNSET', index=1, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=379,
|
||||
serialized_end=439,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_OPEN_CONDITION_CONDITIONOPERATION)
|
||||
|
||||
_OPEN_CTXOPERATION = _descriptor.EnumDescriptor(
|
||||
name='CtxOperation',
|
||||
full_name='Mysqlx.Expect.Open.CtxOperation',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_CTX_COPY_PREV', index=0, number=0,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_CTX_EMPTY', index=1, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=441,
|
||||
serialized_end=503,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_OPEN_CTXOPERATION)
|
||||
|
||||
|
||||
_OPEN_CONDITION = _descriptor.Descriptor(
|
||||
name='Condition',
|
||||
full_name='Mysqlx.Expect.Open.Condition',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='condition_key', full_name='Mysqlx.Expect.Open.Condition.condition_key', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='condition_value', full_name='Mysqlx.Expect.Open.Condition.condition_value', index=1,
|
||||
number=2, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='op', full_name='Mysqlx.Expect.Open.Condition.op', index=2,
|
||||
number=3, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_OPEN_CONDITION_KEY,
|
||||
_OPEN_CONDITION_CONDITIONOPERATION,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=161,
|
||||
serialized_end=439,
|
||||
)
|
||||
|
||||
_OPEN = _descriptor.Descriptor(
|
||||
name='Open',
|
||||
full_name='Mysqlx.Expect.Open',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='op', full_name='Mysqlx.Expect.Open.op', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='cond', full_name='Mysqlx.Expect.Open.cond', index=1,
|
||||
number=2, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_OPEN_CONDITION, ],
|
||||
enum_types=[
|
||||
_OPEN_CTXOPERATION,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=39,
|
||||
serialized_end=503,
|
||||
)
|
||||
|
||||
|
||||
_CLOSE = _descriptor.Descriptor(
|
||||
name='Close',
|
||||
full_name='Mysqlx.Expect.Close',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=505,
|
||||
serialized_end=512,
|
||||
)
|
||||
|
||||
_OPEN_CONDITION.fields_by_name['op'].enum_type = _OPEN_CONDITION_CONDITIONOPERATION
|
||||
_OPEN_CONDITION.containing_type = _OPEN
|
||||
_OPEN_CONDITION_KEY.containing_type = _OPEN_CONDITION
|
||||
_OPEN_CONDITION_CONDITIONOPERATION.containing_type = _OPEN_CONDITION
|
||||
_OPEN.fields_by_name['op'].enum_type = _OPEN_CTXOPERATION
|
||||
_OPEN.fields_by_name['cond'].message_type = _OPEN_CONDITION
|
||||
_OPEN_CTXOPERATION.containing_type = _OPEN
|
||||
DESCRIPTOR.message_types_by_name['Open'] = _OPEN
|
||||
DESCRIPTOR.message_types_by_name['Close'] = _CLOSE
|
||||
|
||||
Open = _reflection.GeneratedProtocolMessageType('Open', (_message.Message,), dict(
|
||||
|
||||
Condition = _reflection.GeneratedProtocolMessageType('Condition', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OPEN_CONDITION,
|
||||
__module__ = 'mysqlx_expect_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expect.Open.Condition)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _OPEN,
|
||||
__module__ = 'mysqlx_expect_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expect.Open)
|
||||
))
|
||||
_sym_db.RegisterMessage(Open)
|
||||
_sym_db.RegisterMessage(Open.Condition)
|
||||
|
||||
Close = _reflection.GeneratedProtocolMessageType('Close', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLOSE,
|
||||
__module__ = 'mysqlx_expect_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expect.Close)
|
||||
))
|
||||
_sym_db.RegisterMessage(Close)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,631 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_expr.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from mysqlx.protobuf import mysqlx_datatypes_pb2 as mysqlx__datatypes__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_expr.proto',
|
||||
package='Mysqlx.Expr',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x11mysqlx_expr.proto\x12\x0bMysqlx.Expr\x1a\x16mysqlx_datatypes.proto\"\xc4\x03\n\x04\x45xpr\x12$\n\x04type\x18\x01 \x02(\x0e\x32\x16.Mysqlx.Expr.Expr.Type\x12\x31\n\nidentifier\x18\x02 \x01(\x0b\x32\x1d.Mysqlx.Expr.ColumnIdentifier\x12\x10\n\x08variable\x18\x03 \x01(\t\x12)\n\x07literal\x18\x04 \x01(\x0b\x32\x18.Mysqlx.Datatypes.Scalar\x12\x30\n\rfunction_call\x18\x05 \x01(\x0b\x32\x19.Mysqlx.Expr.FunctionCall\x12\'\n\x08operator\x18\x06 \x01(\x0b\x32\x15.Mysqlx.Expr.Operator\x12\x10\n\x08position\x18\x07 \x01(\r\x12#\n\x06object\x18\x08 \x01(\x0b\x32\x13.Mysqlx.Expr.Object\x12!\n\x05\x61rray\x18\t \x01(\x0b\x32\x12.Mysqlx.Expr.Array\"q\n\x04Type\x12\t\n\x05IDENT\x10\x01\x12\x0b\n\x07LITERAL\x10\x02\x12\x0c\n\x08VARIABLE\x10\x03\x12\r\n\tFUNC_CALL\x10\x04\x12\x0c\n\x08OPERATOR\x10\x05\x12\x0f\n\x0bPLACEHOLDER\x10\x06\x12\n\n\x06OBJECT\x10\x07\x12\t\n\x05\x41RRAY\x10\x08\"/\n\nIdentifier\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x13\n\x0bschema_name\x18\x02 \x01(\t\"\xcb\x01\n\x10\x44ocumentPathItem\x12\x30\n\x04type\x18\x01 \x02(\x0e\x32\".Mysqlx.Expr.DocumentPathItem.Type\x12\r\n\x05value\x18\x02 \x01(\t\x12\r\n\x05index\x18\x03 \x01(\r\"g\n\x04Type\x12\n\n\x06MEMBER\x10\x01\x12\x13\n\x0fMEMBER_ASTERISK\x10\x02\x12\x0f\n\x0b\x41RRAY_INDEX\x10\x03\x12\x18\n\x14\x41RRAY_INDEX_ASTERISK\x10\x04\x12\x13\n\x0f\x44OUBLE_ASTERISK\x10\x05\"\x7f\n\x10\x43olumnIdentifier\x12\x34\n\rdocument_path\x18\x01 \x03(\x0b\x32\x1d.Mysqlx.Expr.DocumentPathItem\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\ntable_name\x18\x03 \x01(\t\x12\x13\n\x0bschema_name\x18\x04 \x01(\t\"W\n\x0c\x46unctionCall\x12%\n\x04name\x18\x01 \x02(\x0b\x32\x17.Mysqlx.Expr.Identifier\x12 \n\x05param\x18\x02 \x03(\x0b\x32\x11.Mysqlx.Expr.Expr\":\n\x08Operator\x12\x0c\n\x04name\x18\x01 \x02(\t\x12 \n\x05param\x18\x02 \x03(\x0b\x32\x11.Mysqlx.Expr.Expr\"t\n\x06Object\x12,\n\x03\x66ld\x18\x01 \x03(\x0b\x32\x1f.Mysqlx.Expr.Object.ObjectField\x1a<\n\x0bObjectField\x12\x0b\n\x03key\x18\x01 \x02(\t\x12 \n\x05value\x18\x02 \x02(\x0b\x32\x11.Mysqlx.Expr.Expr\")\n\x05\x41rray\x12 \n\x05value\x18\x01 \x03(\x0b\x32\x11.Mysqlx.Expr.ExprB\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
,
|
||||
dependencies=[mysqlx__datatypes__pb2.DESCRIPTOR,])
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_EXPR_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Expr.Expr.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='IDENT', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='LITERAL', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='VARIABLE', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='FUNC_CALL', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='OPERATOR', index=4, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='PLACEHOLDER', index=5, number=6,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='OBJECT', index=6, number=7,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ARRAY', index=7, number=8,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=398,
|
||||
serialized_end=511,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_EXPR_TYPE)
|
||||
|
||||
_DOCUMENTPATHITEM_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Expr.DocumentPathItem.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='MEMBER', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='MEMBER_ASTERISK', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ARRAY_INDEX', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ARRAY_INDEX_ASTERISK', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DOUBLE_ASTERISK', index=4, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=663,
|
||||
serialized_end=766,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_DOCUMENTPATHITEM_TYPE)
|
||||
|
||||
|
||||
_EXPR = _descriptor.Descriptor(
|
||||
name='Expr',
|
||||
full_name='Mysqlx.Expr.Expr',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Expr.Expr.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='identifier', full_name='Mysqlx.Expr.Expr.identifier', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='variable', full_name='Mysqlx.Expr.Expr.variable', index=2,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='literal', full_name='Mysqlx.Expr.Expr.literal', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='function_call', full_name='Mysqlx.Expr.Expr.function_call', index=4,
|
||||
number=5, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='operator', full_name='Mysqlx.Expr.Expr.operator', index=5,
|
||||
number=6, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='position', full_name='Mysqlx.Expr.Expr.position', index=6,
|
||||
number=7, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='object', full_name='Mysqlx.Expr.Expr.object', index=7,
|
||||
number=8, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='array', full_name='Mysqlx.Expr.Expr.array', index=8,
|
||||
number=9, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_EXPR_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=59,
|
||||
serialized_end=511,
|
||||
)
|
||||
|
||||
|
||||
_IDENTIFIER = _descriptor.Descriptor(
|
||||
name='Identifier',
|
||||
full_name='Mysqlx.Expr.Identifier',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='Mysqlx.Expr.Identifier.name', index=0,
|
||||
number=1, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='schema_name', full_name='Mysqlx.Expr.Identifier.schema_name', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=513,
|
||||
serialized_end=560,
|
||||
)
|
||||
|
||||
|
||||
_DOCUMENTPATHITEM = _descriptor.Descriptor(
|
||||
name='DocumentPathItem',
|
||||
full_name='Mysqlx.Expr.DocumentPathItem',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Expr.DocumentPathItem.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Expr.DocumentPathItem.value', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='index', full_name='Mysqlx.Expr.DocumentPathItem.index', index=2,
|
||||
number=3, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_DOCUMENTPATHITEM_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=563,
|
||||
serialized_end=766,
|
||||
)
|
||||
|
||||
|
||||
_COLUMNIDENTIFIER = _descriptor.Descriptor(
|
||||
name='ColumnIdentifier',
|
||||
full_name='Mysqlx.Expr.ColumnIdentifier',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='document_path', full_name='Mysqlx.Expr.ColumnIdentifier.document_path', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='Mysqlx.Expr.ColumnIdentifier.name', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='table_name', full_name='Mysqlx.Expr.ColumnIdentifier.table_name', index=2,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='schema_name', full_name='Mysqlx.Expr.ColumnIdentifier.schema_name', index=3,
|
||||
number=4, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=768,
|
||||
serialized_end=895,
|
||||
)
|
||||
|
||||
|
||||
_FUNCTIONCALL = _descriptor.Descriptor(
|
||||
name='FunctionCall',
|
||||
full_name='Mysqlx.Expr.FunctionCall',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='Mysqlx.Expr.FunctionCall.name', index=0,
|
||||
number=1, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='param', full_name='Mysqlx.Expr.FunctionCall.param', index=1,
|
||||
number=2, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=897,
|
||||
serialized_end=984,
|
||||
)
|
||||
|
||||
|
||||
_OPERATOR = _descriptor.Descriptor(
|
||||
name='Operator',
|
||||
full_name='Mysqlx.Expr.Operator',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='Mysqlx.Expr.Operator.name', index=0,
|
||||
number=1, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='param', full_name='Mysqlx.Expr.Operator.param', index=1,
|
||||
number=2, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=986,
|
||||
serialized_end=1044,
|
||||
)
|
||||
|
||||
|
||||
_OBJECT_OBJECTFIELD = _descriptor.Descriptor(
|
||||
name='ObjectField',
|
||||
full_name='Mysqlx.Expr.Object.ObjectField',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='key', full_name='Mysqlx.Expr.Object.ObjectField.key', index=0,
|
||||
number=1, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Expr.Object.ObjectField.value', index=1,
|
||||
number=2, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1102,
|
||||
serialized_end=1162,
|
||||
)
|
||||
|
||||
_OBJECT = _descriptor.Descriptor(
|
||||
name='Object',
|
||||
full_name='Mysqlx.Expr.Object',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='fld', full_name='Mysqlx.Expr.Object.fld', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_OBJECT_OBJECTFIELD, ],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1046,
|
||||
serialized_end=1162,
|
||||
)
|
||||
|
||||
|
||||
_ARRAY = _descriptor.Descriptor(
|
||||
name='Array',
|
||||
full_name='Mysqlx.Expr.Array',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Expr.Array.value', index=0,
|
||||
number=1, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1164,
|
||||
serialized_end=1205,
|
||||
)
|
||||
|
||||
_EXPR.fields_by_name['type'].enum_type = _EXPR_TYPE
|
||||
_EXPR.fields_by_name['identifier'].message_type = _COLUMNIDENTIFIER
|
||||
_EXPR.fields_by_name['literal'].message_type = mysqlx__datatypes__pb2._SCALAR
|
||||
_EXPR.fields_by_name['function_call'].message_type = _FUNCTIONCALL
|
||||
_EXPR.fields_by_name['operator'].message_type = _OPERATOR
|
||||
_EXPR.fields_by_name['object'].message_type = _OBJECT
|
||||
_EXPR.fields_by_name['array'].message_type = _ARRAY
|
||||
_EXPR_TYPE.containing_type = _EXPR
|
||||
_DOCUMENTPATHITEM.fields_by_name['type'].enum_type = _DOCUMENTPATHITEM_TYPE
|
||||
_DOCUMENTPATHITEM_TYPE.containing_type = _DOCUMENTPATHITEM
|
||||
_COLUMNIDENTIFIER.fields_by_name['document_path'].message_type = _DOCUMENTPATHITEM
|
||||
_FUNCTIONCALL.fields_by_name['name'].message_type = _IDENTIFIER
|
||||
_FUNCTIONCALL.fields_by_name['param'].message_type = _EXPR
|
||||
_OPERATOR.fields_by_name['param'].message_type = _EXPR
|
||||
_OBJECT_OBJECTFIELD.fields_by_name['value'].message_type = _EXPR
|
||||
_OBJECT_OBJECTFIELD.containing_type = _OBJECT
|
||||
_OBJECT.fields_by_name['fld'].message_type = _OBJECT_OBJECTFIELD
|
||||
_ARRAY.fields_by_name['value'].message_type = _EXPR
|
||||
DESCRIPTOR.message_types_by_name['Expr'] = _EXPR
|
||||
DESCRIPTOR.message_types_by_name['Identifier'] = _IDENTIFIER
|
||||
DESCRIPTOR.message_types_by_name['DocumentPathItem'] = _DOCUMENTPATHITEM
|
||||
DESCRIPTOR.message_types_by_name['ColumnIdentifier'] = _COLUMNIDENTIFIER
|
||||
DESCRIPTOR.message_types_by_name['FunctionCall'] = _FUNCTIONCALL
|
||||
DESCRIPTOR.message_types_by_name['Operator'] = _OPERATOR
|
||||
DESCRIPTOR.message_types_by_name['Object'] = _OBJECT
|
||||
DESCRIPTOR.message_types_by_name['Array'] = _ARRAY
|
||||
|
||||
Expr = _reflection.GeneratedProtocolMessageType('Expr', (_message.Message,), dict(
|
||||
DESCRIPTOR = _EXPR,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.Expr)
|
||||
))
|
||||
_sym_db.RegisterMessage(Expr)
|
||||
|
||||
Identifier = _reflection.GeneratedProtocolMessageType('Identifier', (_message.Message,), dict(
|
||||
DESCRIPTOR = _IDENTIFIER,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.Identifier)
|
||||
))
|
||||
_sym_db.RegisterMessage(Identifier)
|
||||
|
||||
DocumentPathItem = _reflection.GeneratedProtocolMessageType('DocumentPathItem', (_message.Message,), dict(
|
||||
DESCRIPTOR = _DOCUMENTPATHITEM,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.DocumentPathItem)
|
||||
))
|
||||
_sym_db.RegisterMessage(DocumentPathItem)
|
||||
|
||||
ColumnIdentifier = _reflection.GeneratedProtocolMessageType('ColumnIdentifier', (_message.Message,), dict(
|
||||
DESCRIPTOR = _COLUMNIDENTIFIER,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.ColumnIdentifier)
|
||||
))
|
||||
_sym_db.RegisterMessage(ColumnIdentifier)
|
||||
|
||||
FunctionCall = _reflection.GeneratedProtocolMessageType('FunctionCall', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FUNCTIONCALL,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.FunctionCall)
|
||||
))
|
||||
_sym_db.RegisterMessage(FunctionCall)
|
||||
|
||||
Operator = _reflection.GeneratedProtocolMessageType('Operator', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OPERATOR,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.Operator)
|
||||
))
|
||||
_sym_db.RegisterMessage(Operator)
|
||||
|
||||
Object = _reflection.GeneratedProtocolMessageType('Object', (_message.Message,), dict(
|
||||
|
||||
ObjectField = _reflection.GeneratedProtocolMessageType('ObjectField', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OBJECT_OBJECTFIELD,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.Object.ObjectField)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _OBJECT,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.Object)
|
||||
))
|
||||
_sym_db.RegisterMessage(Object)
|
||||
_sym_db.RegisterMessage(Object.ObjectField)
|
||||
|
||||
Array = _reflection.GeneratedProtocolMessageType('Array', (_message.Message,), dict(
|
||||
DESCRIPTOR = _ARRAY,
|
||||
__module__ = 'mysqlx_expr_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Expr.Array)
|
||||
))
|
||||
_sym_db.RegisterMessage(Array)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,523 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_notice.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from mysqlx.protobuf import mysqlx_datatypes_pb2 as mysqlx__datatypes__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_notice.proto',
|
||||
package='Mysqlx.Notice',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x13mysqlx_notice.proto\x12\rMysqlx.Notice\x1a\x16mysqlx_datatypes.proto\"\xff\x01\n\x05\x46rame\x12\x0c\n\x04type\x18\x01 \x02(\r\x12\x31\n\x05scope\x18\x02 \x01(\x0e\x32\x1a.Mysqlx.Notice.Frame.Scope:\x06GLOBAL\x12\x0f\n\x07payload\x18\x03 \x01(\x0c\"\x1e\n\x05Scope\x12\n\n\x06GLOBAL\x10\x01\x12\t\n\x05LOCAL\x10\x02\"\x83\x01\n\x04Type\x12\x0b\n\x07WARNING\x10\x01\x12\x1c\n\x18SESSION_VARIABLE_CHANGED\x10\x02\x12\x19\n\x15SESSION_STATE_CHANGED\x10\x03\x12#\n\x1fGROUP_REPLICATION_STATE_CHANGED\x10\x04\x12\x10\n\x0cSERVER_HELLO\x10\x05\"\x85\x01\n\x07Warning\x12\x34\n\x05level\x18\x01 \x01(\x0e\x32\x1c.Mysqlx.Notice.Warning.Level:\x07WARNING\x12\x0c\n\x04\x63ode\x18\x02 \x02(\r\x12\x0b\n\x03msg\x18\x03 \x02(\t\")\n\x05Level\x12\x08\n\x04NOTE\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"P\n\x16SessionVariableChanged\x12\r\n\x05param\x18\x01 \x02(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.Mysqlx.Datatypes.Scalar\"\xf1\x02\n\x13SessionStateChanged\x12;\n\x05param\x18\x01 \x02(\x0e\x32,.Mysqlx.Notice.SessionStateChanged.Parameter\x12\'\n\x05value\x18\x02 \x03(\x0b\x32\x18.Mysqlx.Datatypes.Scalar\"\xf3\x01\n\tParameter\x12\x12\n\x0e\x43URRENT_SCHEMA\x10\x01\x12\x13\n\x0f\x41\x43\x43OUNT_EXPIRED\x10\x02\x12\x17\n\x13GENERATED_INSERT_ID\x10\x03\x12\x11\n\rROWS_AFFECTED\x10\x04\x12\x0e\n\nROWS_FOUND\x10\x05\x12\x10\n\x0cROWS_MATCHED\x10\x06\x12\x11\n\rTRX_COMMITTED\x10\x07\x12\x12\n\x0eTRX_ROLLEDBACK\x10\t\x12\x14\n\x10PRODUCED_MESSAGE\x10\n\x12\x16\n\x12\x43LIENT_ID_ASSIGNED\x10\x0b\x12\x1a\n\x16GENERATED_DOCUMENT_IDS\x10\x0c\"\xae\x01\n\x1cGroupReplicationStateChanged\x12\x0c\n\x04type\x18\x01 \x02(\r\x12\x0f\n\x07view_id\x18\x02 \x01(\t\"o\n\x04Type\x12\x1a\n\x16MEMBERSHIP_QUORUM_LOSS\x10\x01\x12\x1a\n\x16MEMBERSHIP_VIEW_CHANGE\x10\x02\x12\x16\n\x12MEMBER_ROLE_CHANGE\x10\x03\x12\x17\n\x13MEMBER_STATE_CHANGE\x10\x04\"\r\n\x0bServerHelloB\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
,
|
||||
dependencies=[mysqlx__datatypes__pb2.DESCRIPTOR,])
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_FRAME_SCOPE = _descriptor.EnumDescriptor(
|
||||
name='Scope',
|
||||
full_name='Mysqlx.Notice.Frame.Scope',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GLOBAL', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='LOCAL', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=154,
|
||||
serialized_end=184,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_FRAME_SCOPE)
|
||||
|
||||
_FRAME_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Notice.Frame.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='WARNING', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESSION_VARIABLE_CHANGED', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESSION_STATE_CHANGED', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GROUP_REPLICATION_STATE_CHANGED', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SERVER_HELLO', index=4, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=187,
|
||||
serialized_end=318,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_FRAME_TYPE)
|
||||
|
||||
_WARNING_LEVEL = _descriptor.EnumDescriptor(
|
||||
name='Level',
|
||||
full_name='Mysqlx.Notice.Warning.Level',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NOTE', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='WARNING', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ERROR', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=413,
|
||||
serialized_end=454,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_WARNING_LEVEL)
|
||||
|
||||
_SESSIONSTATECHANGED_PARAMETER = _descriptor.EnumDescriptor(
|
||||
name='Parameter',
|
||||
full_name='Mysqlx.Notice.SessionStateChanged.Parameter',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CURRENT_SCHEMA', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ACCOUNT_EXPIRED', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GENERATED_INSERT_ID', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ROWS_AFFECTED', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ROWS_FOUND', index=4, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ROWS_MATCHED', index=5, number=6,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='TRX_COMMITTED', index=6, number=7,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='TRX_ROLLEDBACK', index=7, number=9,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='PRODUCED_MESSAGE', index=8, number=10,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CLIENT_ID_ASSIGNED', index=9, number=11,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GENERATED_DOCUMENT_IDS', index=10, number=12,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=665,
|
||||
serialized_end=908,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SESSIONSTATECHANGED_PARAMETER)
|
||||
|
||||
_GROUPREPLICATIONSTATECHANGED_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Notice.GroupReplicationStateChanged.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='MEMBERSHIP_QUORUM_LOSS', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='MEMBERSHIP_VIEW_CHANGE', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='MEMBER_ROLE_CHANGE', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='MEMBER_STATE_CHANGE', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=974,
|
||||
serialized_end=1085,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_GROUPREPLICATIONSTATECHANGED_TYPE)
|
||||
|
||||
|
||||
_FRAME = _descriptor.Descriptor(
|
||||
name='Frame',
|
||||
full_name='Mysqlx.Notice.Frame',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Notice.Frame.type', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='scope', full_name='Mysqlx.Notice.Frame.scope', index=1,
|
||||
number=2, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='payload', full_name='Mysqlx.Notice.Frame.payload', index=2,
|
||||
number=3, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_FRAME_SCOPE,
|
||||
_FRAME_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=63,
|
||||
serialized_end=318,
|
||||
)
|
||||
|
||||
|
||||
_WARNING = _descriptor.Descriptor(
|
||||
name='Warning',
|
||||
full_name='Mysqlx.Notice.Warning',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='level', full_name='Mysqlx.Notice.Warning.level', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=2,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='code', full_name='Mysqlx.Notice.Warning.code', index=1,
|
||||
number=2, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='msg', full_name='Mysqlx.Notice.Warning.msg', index=2,
|
||||
number=3, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_WARNING_LEVEL,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=321,
|
||||
serialized_end=454,
|
||||
)
|
||||
|
||||
|
||||
_SESSIONVARIABLECHANGED = _descriptor.Descriptor(
|
||||
name='SessionVariableChanged',
|
||||
full_name='Mysqlx.Notice.SessionVariableChanged',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='param', full_name='Mysqlx.Notice.SessionVariableChanged.param', index=0,
|
||||
number=1, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Notice.SessionVariableChanged.value', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=456,
|
||||
serialized_end=536,
|
||||
)
|
||||
|
||||
|
||||
_SESSIONSTATECHANGED = _descriptor.Descriptor(
|
||||
name='SessionStateChanged',
|
||||
full_name='Mysqlx.Notice.SessionStateChanged',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='param', full_name='Mysqlx.Notice.SessionStateChanged.param', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='value', full_name='Mysqlx.Notice.SessionStateChanged.value', index=1,
|
||||
number=2, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_SESSIONSTATECHANGED_PARAMETER,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=539,
|
||||
serialized_end=908,
|
||||
)
|
||||
|
||||
|
||||
_GROUPREPLICATIONSTATECHANGED = _descriptor.Descriptor(
|
||||
name='GroupReplicationStateChanged',
|
||||
full_name='Mysqlx.Notice.GroupReplicationStateChanged',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Notice.GroupReplicationStateChanged.type', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='view_id', full_name='Mysqlx.Notice.GroupReplicationStateChanged.view_id', index=1,
|
||||
number=2, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_GROUPREPLICATIONSTATECHANGED_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=911,
|
||||
serialized_end=1085,
|
||||
)
|
||||
|
||||
|
||||
_SERVERHELLO = _descriptor.Descriptor(
|
||||
name='ServerHello',
|
||||
full_name='Mysqlx.Notice.ServerHello',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=1087,
|
||||
serialized_end=1100,
|
||||
)
|
||||
|
||||
_FRAME.fields_by_name['scope'].enum_type = _FRAME_SCOPE
|
||||
_FRAME_SCOPE.containing_type = _FRAME
|
||||
_FRAME_TYPE.containing_type = _FRAME
|
||||
_WARNING.fields_by_name['level'].enum_type = _WARNING_LEVEL
|
||||
_WARNING_LEVEL.containing_type = _WARNING
|
||||
_SESSIONVARIABLECHANGED.fields_by_name['value'].message_type = mysqlx__datatypes__pb2._SCALAR
|
||||
_SESSIONSTATECHANGED.fields_by_name['param'].enum_type = _SESSIONSTATECHANGED_PARAMETER
|
||||
_SESSIONSTATECHANGED.fields_by_name['value'].message_type = mysqlx__datatypes__pb2._SCALAR
|
||||
_SESSIONSTATECHANGED_PARAMETER.containing_type = _SESSIONSTATECHANGED
|
||||
_GROUPREPLICATIONSTATECHANGED_TYPE.containing_type = _GROUPREPLICATIONSTATECHANGED
|
||||
DESCRIPTOR.message_types_by_name['Frame'] = _FRAME
|
||||
DESCRIPTOR.message_types_by_name['Warning'] = _WARNING
|
||||
DESCRIPTOR.message_types_by_name['SessionVariableChanged'] = _SESSIONVARIABLECHANGED
|
||||
DESCRIPTOR.message_types_by_name['SessionStateChanged'] = _SESSIONSTATECHANGED
|
||||
DESCRIPTOR.message_types_by_name['GroupReplicationStateChanged'] = _GROUPREPLICATIONSTATECHANGED
|
||||
DESCRIPTOR.message_types_by_name['ServerHello'] = _SERVERHELLO
|
||||
|
||||
Frame = _reflection.GeneratedProtocolMessageType('Frame', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FRAME,
|
||||
__module__ = 'mysqlx_notice_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Notice.Frame)
|
||||
))
|
||||
_sym_db.RegisterMessage(Frame)
|
||||
|
||||
Warning = _reflection.GeneratedProtocolMessageType('Warning', (_message.Message,), dict(
|
||||
DESCRIPTOR = _WARNING,
|
||||
__module__ = 'mysqlx_notice_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Notice.Warning)
|
||||
))
|
||||
_sym_db.RegisterMessage(Warning)
|
||||
|
||||
SessionVariableChanged = _reflection.GeneratedProtocolMessageType('SessionVariableChanged', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SESSIONVARIABLECHANGED,
|
||||
__module__ = 'mysqlx_notice_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Notice.SessionVariableChanged)
|
||||
))
|
||||
_sym_db.RegisterMessage(SessionVariableChanged)
|
||||
|
||||
SessionStateChanged = _reflection.GeneratedProtocolMessageType('SessionStateChanged', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SESSIONSTATECHANGED,
|
||||
__module__ = 'mysqlx_notice_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Notice.SessionStateChanged)
|
||||
))
|
||||
_sym_db.RegisterMessage(SessionStateChanged)
|
||||
|
||||
GroupReplicationStateChanged = _reflection.GeneratedProtocolMessageType('GroupReplicationStateChanged', (_message.Message,), dict(
|
||||
DESCRIPTOR = _GROUPREPLICATIONSTATECHANGED,
|
||||
__module__ = 'mysqlx_notice_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Notice.GroupReplicationStateChanged)
|
||||
))
|
||||
_sym_db.RegisterMessage(GroupReplicationStateChanged)
|
||||
|
||||
ServerHello = _reflection.GeneratedProtocolMessageType('ServerHello', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SERVERHELLO,
|
||||
__module__ = 'mysqlx_notice_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Notice.ServerHello)
|
||||
))
|
||||
_sym_db.RegisterMessage(ServerHello)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,432 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx.proto',
|
||||
package='Mysqlx',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x0cmysqlx.proto\x12\x06Mysqlx\"\xfc\x03\n\x0e\x43lientMessages\"\xe9\x03\n\x04Type\x12\x18\n\x14\x43ON_CAPABILITIES_GET\x10\x01\x12\x18\n\x14\x43ON_CAPABILITIES_SET\x10\x02\x12\r\n\tCON_CLOSE\x10\x03\x12\x1b\n\x17SESS_AUTHENTICATE_START\x10\x04\x12\x1e\n\x1aSESS_AUTHENTICATE_CONTINUE\x10\x05\x12\x0e\n\nSESS_RESET\x10\x06\x12\x0e\n\nSESS_CLOSE\x10\x07\x12\x14\n\x10SQL_STMT_EXECUTE\x10\x0c\x12\r\n\tCRUD_FIND\x10\x11\x12\x0f\n\x0b\x43RUD_INSERT\x10\x12\x12\x0f\n\x0b\x43RUD_UPDATE\x10\x13\x12\x0f\n\x0b\x43RUD_DELETE\x10\x14\x12\x0f\n\x0b\x45XPECT_OPEN\x10\x18\x12\x10\n\x0c\x45XPECT_CLOSE\x10\x19\x12\x14\n\x10\x43RUD_CREATE_VIEW\x10\x1e\x12\x14\n\x10\x43RUD_MODIFY_VIEW\x10\x1f\x12\x12\n\x0e\x43RUD_DROP_VIEW\x10 \x12\x13\n\x0fPREPARE_PREPARE\x10(\x12\x13\n\x0fPREPARE_EXECUTE\x10)\x12\x16\n\x12PREPARE_DEALLOCATE\x10*\x12\x0f\n\x0b\x43URSOR_OPEN\x10+\x12\x10\n\x0c\x43URSOR_CLOSE\x10,\x12\x10\n\x0c\x43URSOR_FETCH\x10-\x12\x0f\n\x0b\x43OMPRESSION\x10.\"\xf3\x02\n\x0eServerMessages\"\xe0\x02\n\x04Type\x12\x06\n\x02OK\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x15\n\x11\x43ONN_CAPABILITIES\x10\x02\x12\x1e\n\x1aSESS_AUTHENTICATE_CONTINUE\x10\x03\x12\x18\n\x14SESS_AUTHENTICATE_OK\x10\x04\x12\n\n\x06NOTICE\x10\x0b\x12\x1e\n\x1aRESULTSET_COLUMN_META_DATA\x10\x0c\x12\x11\n\rRESULTSET_ROW\x10\r\x12\x18\n\x14RESULTSET_FETCH_DONE\x10\x0e\x12\x1d\n\x19RESULTSET_FETCH_SUSPENDED\x10\x0f\x12(\n$RESULTSET_FETCH_DONE_MORE_RESULTSETS\x10\x10\x12\x17\n\x13SQL_STMT_EXECUTE_OK\x10\x11\x12(\n$RESULTSET_FETCH_DONE_MORE_OUT_PARAMS\x10\x12\x12\x0f\n\x0b\x43OMPRESSION\x10\x13\"\x11\n\x02Ok\x12\x0b\n\x03msg\x18\x01 \x01(\t\"\x88\x01\n\x05\x45rror\x12/\n\x08severity\x18\x01 \x01(\x0e\x32\x16.Mysqlx.Error.Severity:\x05\x45RROR\x12\x0c\n\x04\x63ode\x18\x02 \x02(\r\x12\x11\n\tsql_state\x18\x04 \x02(\t\x12\x0b\n\x03msg\x18\x03 \x02(\t\" \n\x08Severity\x12\t\n\x05\x45RROR\x10\x00\x12\t\n\x05\x46\x41TAL\x10\x01\x42\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
)
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_CLIENTMESSAGES_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.ClientMessages.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CON_CAPABILITIES_GET', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CON_CAPABILITIES_SET', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CON_CLOSE', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESS_AUTHENTICATE_START', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESS_AUTHENTICATE_CONTINUE', index=4, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESS_RESET', index=5, number=6,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESS_CLOSE', index=6, number=7,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SQL_STMT_EXECUTE', index=7, number=12,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CRUD_FIND', index=8, number=17,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CRUD_INSERT', index=9, number=18,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CRUD_UPDATE', index=10, number=19,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CRUD_DELETE', index=11, number=20,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_OPEN', index=12, number=24,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='EXPECT_CLOSE', index=13, number=25,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CRUD_CREATE_VIEW', index=14, number=30,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CRUD_MODIFY_VIEW', index=15, number=31,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CRUD_DROP_VIEW', index=16, number=32,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='PREPARE_PREPARE', index=17, number=40,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='PREPARE_EXECUTE', index=18, number=41,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='PREPARE_DEALLOCATE', index=19, number=42,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CURSOR_OPEN', index=20, number=43,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CURSOR_CLOSE', index=21, number=44,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CURSOR_FETCH', index=22, number=45,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='COMPRESSION', index=23, number=46,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=44,
|
||||
serialized_end=533,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CLIENTMESSAGES_TYPE)
|
||||
|
||||
_SERVERMESSAGES_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.ServerMessages.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='OK', index=0, number=0,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ERROR', index=1, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='CONN_CAPABILITIES', index=2, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESS_AUTHENTICATE_CONTINUE', index=3, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SESS_AUTHENTICATE_OK', index=4, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='NOTICE', index=5, number=11,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RESULTSET_COLUMN_META_DATA', index=6, number=12,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RESULTSET_ROW', index=7, number=13,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RESULTSET_FETCH_DONE', index=8, number=14,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RESULTSET_FETCH_SUSPENDED', index=9, number=15,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RESULTSET_FETCH_DONE_MORE_RESULTSETS', index=10, number=16,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SQL_STMT_EXECUTE_OK', index=11, number=17,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='RESULTSET_FETCH_DONE_MORE_OUT_PARAMS', index=12, number=18,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='COMPRESSION', index=13, number=19,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=555,
|
||||
serialized_end=907,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_SERVERMESSAGES_TYPE)
|
||||
|
||||
_ERROR_SEVERITY = _descriptor.EnumDescriptor(
|
||||
name='Severity',
|
||||
full_name='Mysqlx.Error.Severity',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ERROR', index=0, number=0,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='FATAL', index=1, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=1033,
|
||||
serialized_end=1065,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_ERROR_SEVERITY)
|
||||
|
||||
|
||||
_CLIENTMESSAGES = _descriptor.Descriptor(
|
||||
name='ClientMessages',
|
||||
full_name='Mysqlx.ClientMessages',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_CLIENTMESSAGES_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=25,
|
||||
serialized_end=533,
|
||||
)
|
||||
|
||||
|
||||
_SERVERMESSAGES = _descriptor.Descriptor(
|
||||
name='ServerMessages',
|
||||
full_name='Mysqlx.ServerMessages',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_SERVERMESSAGES_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=536,
|
||||
serialized_end=907,
|
||||
)
|
||||
|
||||
|
||||
_OK = _descriptor.Descriptor(
|
||||
name='Ok',
|
||||
full_name='Mysqlx.Ok',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='msg', full_name='Mysqlx.Ok.msg', index=0,
|
||||
number=1, type=9, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=909,
|
||||
serialized_end=926,
|
||||
)
|
||||
|
||||
|
||||
_ERROR = _descriptor.Descriptor(
|
||||
name='Error',
|
||||
full_name='Mysqlx.Error',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='severity', full_name='Mysqlx.Error.severity', index=0,
|
||||
number=1, type=14, cpp_type=8, label=1,
|
||||
has_default_value=True, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='code', full_name='Mysqlx.Error.code', index=1,
|
||||
number=2, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='sql_state', full_name='Mysqlx.Error.sql_state', index=2,
|
||||
number=4, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='msg', full_name='Mysqlx.Error.msg', index=3,
|
||||
number=3, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_ERROR_SEVERITY,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=929,
|
||||
serialized_end=1065,
|
||||
)
|
||||
|
||||
_CLIENTMESSAGES_TYPE.containing_type = _CLIENTMESSAGES
|
||||
_SERVERMESSAGES_TYPE.containing_type = _SERVERMESSAGES
|
||||
_ERROR.fields_by_name['severity'].enum_type = _ERROR_SEVERITY
|
||||
_ERROR_SEVERITY.containing_type = _ERROR
|
||||
DESCRIPTOR.message_types_by_name['ClientMessages'] = _CLIENTMESSAGES
|
||||
DESCRIPTOR.message_types_by_name['ServerMessages'] = _SERVERMESSAGES
|
||||
DESCRIPTOR.message_types_by_name['Ok'] = _OK
|
||||
DESCRIPTOR.message_types_by_name['Error'] = _ERROR
|
||||
|
||||
ClientMessages = _reflection.GeneratedProtocolMessageType('ClientMessages', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLIENTMESSAGES,
|
||||
__module__ = 'mysqlx_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.ClientMessages)
|
||||
))
|
||||
_sym_db.RegisterMessage(ClientMessages)
|
||||
|
||||
ServerMessages = _reflection.GeneratedProtocolMessageType('ServerMessages', (_message.Message,), dict(
|
||||
DESCRIPTOR = _SERVERMESSAGES,
|
||||
__module__ = 'mysqlx_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.ServerMessages)
|
||||
))
|
||||
_sym_db.RegisterMessage(ServerMessages)
|
||||
|
||||
Ok = _reflection.GeneratedProtocolMessageType('Ok', (_message.Message,), dict(
|
||||
DESCRIPTOR = _OK,
|
||||
__module__ = 'mysqlx_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Ok)
|
||||
))
|
||||
_sym_db.RegisterMessage(Ok)
|
||||
|
||||
Error = _reflection.GeneratedProtocolMessageType('Error', (_message.Message,), dict(
|
||||
DESCRIPTOR = _ERROR,
|
||||
__module__ = 'mysqlx_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Error)
|
||||
))
|
||||
_sym_db.RegisterMessage(Error)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,320 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_prepare.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from mysqlx.protobuf import mysqlx_sql_pb2 as mysqlx__sql__pb2
|
||||
from mysqlx.protobuf import mysqlx_crud_pb2 as mysqlx__crud__pb2
|
||||
from mysqlx.protobuf import mysqlx_datatypes_pb2 as mysqlx__datatypes__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_prepare.proto',
|
||||
package='Mysqlx.Prepare',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x14mysqlx_prepare.proto\x12\x0eMysqlx.Prepare\x1a\x10mysqlx_sql.proto\x1a\x11mysqlx_crud.proto\x1a\x16mysqlx_datatypes.proto\"\x97\x03\n\x07Prepare\x12\x0f\n\x07stmt_id\x18\x01 \x02(\r\x12\x32\n\x04stmt\x18\x02 \x02(\x0b\x32$.Mysqlx.Prepare.Prepare.OneOfMessage\x1a\xc6\x02\n\x0cOneOfMessage\x12\x37\n\x04type\x18\x01 \x02(\x0e\x32).Mysqlx.Prepare.Prepare.OneOfMessage.Type\x12\x1f\n\x04\x66ind\x18\x02 \x01(\x0b\x32\x11.Mysqlx.Crud.Find\x12#\n\x06insert\x18\x03 \x01(\x0b\x32\x13.Mysqlx.Crud.Insert\x12#\n\x06update\x18\x04 \x01(\x0b\x32\x13.Mysqlx.Crud.Update\x12#\n\x06\x64\x65lete\x18\x05 \x01(\x0b\x32\x13.Mysqlx.Crud.Delete\x12-\n\x0cstmt_execute\x18\x06 \x01(\x0b\x32\x17.Mysqlx.Sql.StmtExecute\">\n\x04Type\x12\x08\n\x04\x46IND\x10\x00\x12\n\n\x06INSERT\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x04\x12\x08\n\x04STMT\x10\x05\"`\n\x07\x45xecute\x12\x0f\n\x07stmt_id\x18\x01 \x02(\r\x12#\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x15.Mysqlx.Datatypes.Any\x12\x1f\n\x10\x63ompact_metadata\x18\x03 \x01(\x08:\x05\x66\x61lse\"\x1d\n\nDeallocate\x12\x0f\n\x07stmt_id\x18\x01 \x02(\rB\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
,
|
||||
dependencies=[mysqlx__sql__pb2.DESCRIPTOR,mysqlx__crud__pb2.DESCRIPTOR,mysqlx__datatypes__pb2.DESCRIPTOR,])
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
_PREPARE_ONEOFMESSAGE_TYPE = _descriptor.EnumDescriptor(
|
||||
name='Type',
|
||||
full_name='Mysqlx.Prepare.Prepare.OneOfMessage.Type',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='FIND', index=0, number=0,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='INSERT', index=1, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UPDATE', index=2, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DELETE', index=3, number=4,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='STMT', index=4, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=447,
|
||||
serialized_end=509,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_PREPARE_ONEOFMESSAGE_TYPE)
|
||||
|
||||
|
||||
_PREPARE_ONEOFMESSAGE = _descriptor.Descriptor(
|
||||
name='OneOfMessage',
|
||||
full_name='Mysqlx.Prepare.Prepare.OneOfMessage',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Prepare.Prepare.OneOfMessage.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='find', full_name='Mysqlx.Prepare.Prepare.OneOfMessage.find', index=1,
|
||||
number=2, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='insert', full_name='Mysqlx.Prepare.Prepare.OneOfMessage.insert', index=2,
|
||||
number=3, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='update', full_name='Mysqlx.Prepare.Prepare.OneOfMessage.update', index=3,
|
||||
number=4, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='delete', full_name='Mysqlx.Prepare.Prepare.OneOfMessage.delete', index=4,
|
||||
number=5, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stmt_execute', full_name='Mysqlx.Prepare.Prepare.OneOfMessage.stmt_execute', index=5,
|
||||
number=6, type=11, cpp_type=10, label=1,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_PREPARE_ONEOFMESSAGE_TYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=183,
|
||||
serialized_end=509,
|
||||
)
|
||||
|
||||
_PREPARE = _descriptor.Descriptor(
|
||||
name='Prepare',
|
||||
full_name='Mysqlx.Prepare.Prepare',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stmt_id', full_name='Mysqlx.Prepare.Prepare.stmt_id', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stmt', full_name='Mysqlx.Prepare.Prepare.stmt', index=1,
|
||||
number=2, type=11, cpp_type=10, label=2,
|
||||
has_default_value=False, default_value=None,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[_PREPARE_ONEOFMESSAGE, ],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=102,
|
||||
serialized_end=509,
|
||||
)
|
||||
|
||||
|
||||
_EXECUTE = _descriptor.Descriptor(
|
||||
name='Execute',
|
||||
full_name='Mysqlx.Prepare.Execute',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stmt_id', full_name='Mysqlx.Prepare.Execute.stmt_id', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='args', full_name='Mysqlx.Prepare.Execute.args', index=1,
|
||||
number=2, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='compact_metadata', full_name='Mysqlx.Prepare.Execute.compact_metadata', index=2,
|
||||
number=3, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=511,
|
||||
serialized_end=607,
|
||||
)
|
||||
|
||||
|
||||
_DEALLOCATE = _descriptor.Descriptor(
|
||||
name='Deallocate',
|
||||
full_name='Mysqlx.Prepare.Deallocate',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stmt_id', full_name='Mysqlx.Prepare.Deallocate.stmt_id', index=0,
|
||||
number=1, type=13, cpp_type=3, label=2,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=609,
|
||||
serialized_end=638,
|
||||
)
|
||||
|
||||
_PREPARE_ONEOFMESSAGE.fields_by_name['type'].enum_type = _PREPARE_ONEOFMESSAGE_TYPE
|
||||
_PREPARE_ONEOFMESSAGE.fields_by_name['find'].message_type = mysqlx__crud__pb2._FIND
|
||||
_PREPARE_ONEOFMESSAGE.fields_by_name['insert'].message_type = mysqlx__crud__pb2._INSERT
|
||||
_PREPARE_ONEOFMESSAGE.fields_by_name['update'].message_type = mysqlx__crud__pb2._UPDATE
|
||||
_PREPARE_ONEOFMESSAGE.fields_by_name['delete'].message_type = mysqlx__crud__pb2._DELETE
|
||||
_PREPARE_ONEOFMESSAGE.fields_by_name['stmt_execute'].message_type = mysqlx__sql__pb2._STMTEXECUTE
|
||||
_PREPARE_ONEOFMESSAGE.containing_type = _PREPARE
|
||||
_PREPARE_ONEOFMESSAGE_TYPE.containing_type = _PREPARE_ONEOFMESSAGE
|
||||
_PREPARE.fields_by_name['stmt'].message_type = _PREPARE_ONEOFMESSAGE
|
||||
_EXECUTE.fields_by_name['args'].message_type = mysqlx__datatypes__pb2._ANY
|
||||
DESCRIPTOR.message_types_by_name['Prepare'] = _PREPARE
|
||||
DESCRIPTOR.message_types_by_name['Execute'] = _EXECUTE
|
||||
DESCRIPTOR.message_types_by_name['Deallocate'] = _DEALLOCATE
|
||||
|
||||
Prepare = _reflection.GeneratedProtocolMessageType('Prepare', (_message.Message,), dict(
|
||||
|
||||
OneOfMessage = _reflection.GeneratedProtocolMessageType('OneOfMessage', (_message.Message,), dict(
|
||||
DESCRIPTOR = _PREPARE_ONEOFMESSAGE,
|
||||
__module__ = 'mysqlx_prepare_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Prepare.Prepare.OneOfMessage)
|
||||
))
|
||||
,
|
||||
DESCRIPTOR = _PREPARE,
|
||||
__module__ = 'mysqlx_prepare_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Prepare.Prepare)
|
||||
))
|
||||
_sym_db.RegisterMessage(Prepare)
|
||||
_sym_db.RegisterMessage(Prepare.OneOfMessage)
|
||||
|
||||
Execute = _reflection.GeneratedProtocolMessageType('Execute', (_message.Message,), dict(
|
||||
DESCRIPTOR = _EXECUTE,
|
||||
__module__ = 'mysqlx_prepare_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Prepare.Execute)
|
||||
))
|
||||
_sym_db.RegisterMessage(Execute)
|
||||
|
||||
Deallocate = _reflection.GeneratedProtocolMessageType('Deallocate', (_message.Message,), dict(
|
||||
DESCRIPTOR = _DEALLOCATE,
|
||||
__module__ = 'mysqlx_prepare_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Prepare.Deallocate)
|
||||
))
|
||||
_sym_db.RegisterMessage(Deallocate)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,462 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_resultset.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_resultset.proto',
|
||||
package='Mysqlx.Resultset',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x16mysqlx_resultset.proto\x12\x10Mysqlx.Resultset\"\x18\n\x16\x46\x65tchDoneMoreOutParams\"\x19\n\x17\x46\x65tchDoneMoreResultsets\"\x0b\n\tFetchDone\"\x10\n\x0e\x46\x65tchSuspended\"\x9f\x03\n\x0e\x43olumnMetaData\x12\x38\n\x04type\x18\x01 \x02(\x0e\x32*.Mysqlx.Resultset.ColumnMetaData.FieldType\x12\x0c\n\x04name\x18\x02 \x01(\x0c\x12\x15\n\roriginal_name\x18\x03 \x01(\x0c\x12\r\n\x05table\x18\x04 \x01(\x0c\x12\x16\n\x0eoriginal_table\x18\x05 \x01(\x0c\x12\x0e\n\x06schema\x18\x06 \x01(\x0c\x12\x0f\n\x07\x63\x61talog\x18\x07 \x01(\x0c\x12\x11\n\tcollation\x18\x08 \x01(\x04\x12\x19\n\x11\x66ractional_digits\x18\t \x01(\r\x12\x0e\n\x06length\x18\n \x01(\r\x12\r\n\x05\x66lags\x18\x0b \x01(\r\x12\x14\n\x0c\x63ontent_type\x18\x0c \x01(\r\"\x82\x01\n\tFieldType\x12\x08\n\x04SINT\x10\x01\x12\x08\n\x04UINT\x10\x02\x12\n\n\x06\x44OUBLE\x10\x05\x12\t\n\x05\x46LOAT\x10\x06\x12\t\n\x05\x42YTES\x10\x07\x12\x08\n\x04TIME\x10\n\x12\x0c\n\x08\x44\x41TETIME\x10\x0c\x12\x07\n\x03SET\x10\x0f\x12\x08\n\x04\x45NUM\x10\x10\x12\x07\n\x03\x42IT\x10\x11\x12\x0b\n\x07\x44\x45\x43IMAL\x10\x12\"\x14\n\x03Row\x12\r\n\x05\x66ield\x18\x01 \x03(\x0c*4\n\x11\x43ontentType_BYTES\x12\x0c\n\x08GEOMETRY\x10\x01\x12\x08\n\x04JSON\x10\x02\x12\x07\n\x03XML\x10\x03*.\n\x14\x43ontentType_DATETIME\x12\x08\n\x04\x44\x41TE\x10\x01\x12\x0c\n\x08\x44\x41TETIME\x10\x02\x42\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
)
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
_CONTENTTYPE_BYTES = _descriptor.EnumDescriptor(
|
||||
name='ContentType_BYTES',
|
||||
full_name='Mysqlx.Resultset.ContentType_BYTES',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='GEOMETRY', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='JSON', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='XML', index=2, number=3,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=568,
|
||||
serialized_end=620,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CONTENTTYPE_BYTES)
|
||||
|
||||
ContentType_BYTES = enum_type_wrapper.EnumTypeWrapper(_CONTENTTYPE_BYTES)
|
||||
_CONTENTTYPE_DATETIME = _descriptor.EnumDescriptor(
|
||||
name='ContentType_DATETIME',
|
||||
full_name='Mysqlx.Resultset.ContentType_DATETIME',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DATE', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DATETIME', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=622,
|
||||
serialized_end=668,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_CONTENTTYPE_DATETIME)
|
||||
|
||||
ContentType_DATETIME = enum_type_wrapper.EnumTypeWrapper(_CONTENTTYPE_DATETIME)
|
||||
GEOMETRY = 1
|
||||
JSON = 2
|
||||
XML = 3
|
||||
DATE = 1
|
||||
DATETIME = 2
|
||||
|
||||
|
||||
_COLUMNMETADATA_FIELDTYPE = _descriptor.EnumDescriptor(
|
||||
name='FieldType',
|
||||
full_name='Mysqlx.Resultset.ColumnMetaData.FieldType',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
values=[
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SINT', index=0, number=1,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='UINT', index=1, number=2,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DOUBLE', index=2, number=5,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='FLOAT', index=3, number=6,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BYTES', index=4, number=7,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='TIME', index=5, number=10,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DATETIME', index=6, number=12,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='SET', index=7, number=15,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='ENUM', index=8, number=16,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='BIT', index=9, number=17,
|
||||
options=None,
|
||||
type=None),
|
||||
_descriptor.EnumValueDescriptor(
|
||||
name='DECIMAL', index=10, number=18,
|
||||
options=None,
|
||||
type=None),
|
||||
],
|
||||
containing_type=None,
|
||||
options=None,
|
||||
serialized_start=414,
|
||||
serialized_end=544,
|
||||
)
|
||||
_sym_db.RegisterEnumDescriptor(_COLUMNMETADATA_FIELDTYPE)
|
||||
|
||||
|
||||
_FETCHDONEMOREOUTPARAMS = _descriptor.Descriptor(
|
||||
name='FetchDoneMoreOutParams',
|
||||
full_name='Mysqlx.Resultset.FetchDoneMoreOutParams',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=44,
|
||||
serialized_end=68,
|
||||
)
|
||||
|
||||
|
||||
_FETCHDONEMORERESULTSETS = _descriptor.Descriptor(
|
||||
name='FetchDoneMoreResultsets',
|
||||
full_name='Mysqlx.Resultset.FetchDoneMoreResultsets',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=70,
|
||||
serialized_end=95,
|
||||
)
|
||||
|
||||
|
||||
_FETCHDONE = _descriptor.Descriptor(
|
||||
name='FetchDone',
|
||||
full_name='Mysqlx.Resultset.FetchDone',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=97,
|
||||
serialized_end=108,
|
||||
)
|
||||
|
||||
|
||||
_FETCHSUSPENDED = _descriptor.Descriptor(
|
||||
name='FetchSuspended',
|
||||
full_name='Mysqlx.Resultset.FetchSuspended',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=110,
|
||||
serialized_end=126,
|
||||
)
|
||||
|
||||
|
||||
_COLUMNMETADATA = _descriptor.Descriptor(
|
||||
name='ColumnMetaData',
|
||||
full_name='Mysqlx.Resultset.ColumnMetaData',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='type', full_name='Mysqlx.Resultset.ColumnMetaData.type', index=0,
|
||||
number=1, type=14, cpp_type=8, label=2,
|
||||
has_default_value=False, default_value=1,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='name', full_name='Mysqlx.Resultset.ColumnMetaData.name', index=1,
|
||||
number=2, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='original_name', full_name='Mysqlx.Resultset.ColumnMetaData.original_name', index=2,
|
||||
number=3, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='table', full_name='Mysqlx.Resultset.ColumnMetaData.table', index=3,
|
||||
number=4, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='original_table', full_name='Mysqlx.Resultset.ColumnMetaData.original_table', index=4,
|
||||
number=5, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='schema', full_name='Mysqlx.Resultset.ColumnMetaData.schema', index=5,
|
||||
number=6, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='catalog', full_name='Mysqlx.Resultset.ColumnMetaData.catalog', index=6,
|
||||
number=7, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='collation', full_name='Mysqlx.Resultset.ColumnMetaData.collation', index=7,
|
||||
number=8, type=4, cpp_type=4, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='fractional_digits', full_name='Mysqlx.Resultset.ColumnMetaData.fractional_digits', index=8,
|
||||
number=9, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='length', full_name='Mysqlx.Resultset.ColumnMetaData.length', index=9,
|
||||
number=10, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='flags', full_name='Mysqlx.Resultset.ColumnMetaData.flags', index=10,
|
||||
number=11, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='content_type', full_name='Mysqlx.Resultset.ColumnMetaData.content_type', index=11,
|
||||
number=12, type=13, cpp_type=3, label=1,
|
||||
has_default_value=False, default_value=0,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
_COLUMNMETADATA_FIELDTYPE,
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=129,
|
||||
serialized_end=544,
|
||||
)
|
||||
|
||||
|
||||
_ROW = _descriptor.Descriptor(
|
||||
name='Row',
|
||||
full_name='Mysqlx.Resultset.Row',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='field', full_name='Mysqlx.Resultset.Row.field', index=0,
|
||||
number=1, type=12, cpp_type=9, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=546,
|
||||
serialized_end=566,
|
||||
)
|
||||
|
||||
_COLUMNMETADATA.fields_by_name['type'].enum_type = _COLUMNMETADATA_FIELDTYPE
|
||||
_COLUMNMETADATA_FIELDTYPE.containing_type = _COLUMNMETADATA
|
||||
DESCRIPTOR.message_types_by_name['FetchDoneMoreOutParams'] = _FETCHDONEMOREOUTPARAMS
|
||||
DESCRIPTOR.message_types_by_name['FetchDoneMoreResultsets'] = _FETCHDONEMORERESULTSETS
|
||||
DESCRIPTOR.message_types_by_name['FetchDone'] = _FETCHDONE
|
||||
DESCRIPTOR.message_types_by_name['FetchSuspended'] = _FETCHSUSPENDED
|
||||
DESCRIPTOR.message_types_by_name['ColumnMetaData'] = _COLUMNMETADATA
|
||||
DESCRIPTOR.message_types_by_name['Row'] = _ROW
|
||||
DESCRIPTOR.enum_types_by_name['ContentType_BYTES'] = _CONTENTTYPE_BYTES
|
||||
DESCRIPTOR.enum_types_by_name['ContentType_DATETIME'] = _CONTENTTYPE_DATETIME
|
||||
|
||||
FetchDoneMoreOutParams = _reflection.GeneratedProtocolMessageType('FetchDoneMoreOutParams', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FETCHDONEMOREOUTPARAMS,
|
||||
__module__ = 'mysqlx_resultset_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchDoneMoreOutParams)
|
||||
))
|
||||
_sym_db.RegisterMessage(FetchDoneMoreOutParams)
|
||||
|
||||
FetchDoneMoreResultsets = _reflection.GeneratedProtocolMessageType('FetchDoneMoreResultsets', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FETCHDONEMORERESULTSETS,
|
||||
__module__ = 'mysqlx_resultset_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchDoneMoreResultsets)
|
||||
))
|
||||
_sym_db.RegisterMessage(FetchDoneMoreResultsets)
|
||||
|
||||
FetchDone = _reflection.GeneratedProtocolMessageType('FetchDone', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FETCHDONE,
|
||||
__module__ = 'mysqlx_resultset_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchDone)
|
||||
))
|
||||
_sym_db.RegisterMessage(FetchDone)
|
||||
|
||||
FetchSuspended = _reflection.GeneratedProtocolMessageType('FetchSuspended', (_message.Message,), dict(
|
||||
DESCRIPTOR = _FETCHSUSPENDED,
|
||||
__module__ = 'mysqlx_resultset_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Resultset.FetchSuspended)
|
||||
))
|
||||
_sym_db.RegisterMessage(FetchSuspended)
|
||||
|
||||
ColumnMetaData = _reflection.GeneratedProtocolMessageType('ColumnMetaData', (_message.Message,), dict(
|
||||
DESCRIPTOR = _COLUMNMETADATA,
|
||||
__module__ = 'mysqlx_resultset_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Resultset.ColumnMetaData)
|
||||
))
|
||||
_sym_db.RegisterMessage(ColumnMetaData)
|
||||
|
||||
Row = _reflection.GeneratedProtocolMessageType('Row', (_message.Message,), dict(
|
||||
DESCRIPTOR = _ROW,
|
||||
__module__ = 'mysqlx_resultset_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Resultset.Row)
|
||||
))
|
||||
_sym_db.RegisterMessage(Row)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,262 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_session.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_session.proto',
|
||||
package='Mysqlx.Session',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x14mysqlx_session.proto\x12\x0eMysqlx.Session\"S\n\x11\x41uthenticateStart\x12\x11\n\tmech_name\x18\x01 \x02(\t\x12\x11\n\tauth_data\x18\x02 \x01(\x0c\x12\x18\n\x10initial_response\x18\x03 \x01(\x0c\")\n\x14\x41uthenticateContinue\x12\x11\n\tauth_data\x18\x01 \x02(\x0c\"#\n\x0e\x41uthenticateOk\x12\x11\n\tauth_data\x18\x01 \x01(\x0c\"!\n\x05Reset\x12\x18\n\tkeep_open\x18\x01 \x01(\x08:\x05\x66\x61lse\"\x07\n\x05\x43loseB\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
)
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
|
||||
_AUTHENTICATESTART = _descriptor.Descriptor(
|
||||
name='AuthenticateStart',
|
||||
full_name='Mysqlx.Session.AuthenticateStart',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='mech_name', full_name='Mysqlx.Session.AuthenticateStart.mech_name', index=0,
|
||||
number=1, type=9, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b("").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='auth_data', full_name='Mysqlx.Session.AuthenticateStart.auth_data', index=1,
|
||||
number=2, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='initial_response', full_name='Mysqlx.Session.AuthenticateStart.initial_response', index=2,
|
||||
number=3, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=40,
|
||||
serialized_end=123,
|
||||
)
|
||||
|
||||
|
||||
_AUTHENTICATECONTINUE = _descriptor.Descriptor(
|
||||
name='AuthenticateContinue',
|
||||
full_name='Mysqlx.Session.AuthenticateContinue',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='auth_data', full_name='Mysqlx.Session.AuthenticateContinue.auth_data', index=0,
|
||||
number=1, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=125,
|
||||
serialized_end=166,
|
||||
)
|
||||
|
||||
|
||||
_AUTHENTICATEOK = _descriptor.Descriptor(
|
||||
name='AuthenticateOk',
|
||||
full_name='Mysqlx.Session.AuthenticateOk',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='auth_data', full_name='Mysqlx.Session.AuthenticateOk.auth_data', index=0,
|
||||
number=1, type=12, cpp_type=9, label=1,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=168,
|
||||
serialized_end=203,
|
||||
)
|
||||
|
||||
|
||||
_RESET = _descriptor.Descriptor(
|
||||
name='Reset',
|
||||
full_name='Mysqlx.Session.Reset',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='keep_open', full_name='Mysqlx.Session.Reset.keep_open', index=0,
|
||||
number=1, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=205,
|
||||
serialized_end=238,
|
||||
)
|
||||
|
||||
|
||||
_CLOSE = _descriptor.Descriptor(
|
||||
name='Close',
|
||||
full_name='Mysqlx.Session.Close',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=240,
|
||||
serialized_end=247,
|
||||
)
|
||||
|
||||
DESCRIPTOR.message_types_by_name['AuthenticateStart'] = _AUTHENTICATESTART
|
||||
DESCRIPTOR.message_types_by_name['AuthenticateContinue'] = _AUTHENTICATECONTINUE
|
||||
DESCRIPTOR.message_types_by_name['AuthenticateOk'] = _AUTHENTICATEOK
|
||||
DESCRIPTOR.message_types_by_name['Reset'] = _RESET
|
||||
DESCRIPTOR.message_types_by_name['Close'] = _CLOSE
|
||||
|
||||
AuthenticateStart = _reflection.GeneratedProtocolMessageType('AuthenticateStart', (_message.Message,), dict(
|
||||
DESCRIPTOR = _AUTHENTICATESTART,
|
||||
__module__ = 'mysqlx_session_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Session.AuthenticateStart)
|
||||
))
|
||||
_sym_db.RegisterMessage(AuthenticateStart)
|
||||
|
||||
AuthenticateContinue = _reflection.GeneratedProtocolMessageType('AuthenticateContinue', (_message.Message,), dict(
|
||||
DESCRIPTOR = _AUTHENTICATECONTINUE,
|
||||
__module__ = 'mysqlx_session_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Session.AuthenticateContinue)
|
||||
))
|
||||
_sym_db.RegisterMessage(AuthenticateContinue)
|
||||
|
||||
AuthenticateOk = _reflection.GeneratedProtocolMessageType('AuthenticateOk', (_message.Message,), dict(
|
||||
DESCRIPTOR = _AUTHENTICATEOK,
|
||||
__module__ = 'mysqlx_session_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Session.AuthenticateOk)
|
||||
))
|
||||
_sym_db.RegisterMessage(AuthenticateOk)
|
||||
|
||||
Reset = _reflection.GeneratedProtocolMessageType('Reset', (_message.Message,), dict(
|
||||
DESCRIPTOR = _RESET,
|
||||
__module__ = 'mysqlx_session_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Session.Reset)
|
||||
))
|
||||
_sym_db.RegisterMessage(Reset)
|
||||
|
||||
Close = _reflection.GeneratedProtocolMessageType('Close', (_message.Message,), dict(
|
||||
DESCRIPTOR = _CLOSE,
|
||||
__module__ = 'mysqlx_session_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Session.Close)
|
||||
))
|
||||
_sym_db.RegisterMessage(Close)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
@@ -0,0 +1,155 @@
|
||||
# Copyright (c) 2017, 2020, Oracle and/or its affiliates.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License, version 2.0, as
|
||||
# published by the Free Software Foundation.
|
||||
#
|
||||
# This program is also distributed with certain software (including
|
||||
# but not limited to OpenSSL) that is licensed under separate terms,
|
||||
# as designated in a particular file or component or in included license
|
||||
# documentation. The authors of MySQL hereby grant you an
|
||||
# additional permission to link the program and your derivative works
|
||||
# with the separately licensed software that they have included with
|
||||
# MySQL.
|
||||
#
|
||||
# Without limiting anything contained in the foregoing, this file,
|
||||
# which is part of MySQL Connector/Python, is also subject to the
|
||||
# Universal FOSS Exception, version 1.0, a copy of which can be found at
|
||||
# http://oss.oracle.com/licenses/universal-foss-exception.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
# See the GNU General Public License, version 2.0, for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: mysqlx_sql.proto
|
||||
|
||||
import sys
|
||||
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf import descriptor_pb2
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from mysqlx.protobuf import mysqlx_datatypes_pb2 as mysqlx__datatypes__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor.FileDescriptor(
|
||||
name='mysqlx_sql.proto',
|
||||
package='Mysqlx.Sql',
|
||||
syntax='proto2',
|
||||
serialized_pb=_b('\n\x10mysqlx_sql.proto\x12\nMysqlx.Sql\x1a\x16mysqlx_datatypes.proto\"y\n\x0bStmtExecute\x12\x16\n\tnamespace\x18\x03 \x01(\t:\x03sql\x12\x0c\n\x04stmt\x18\x01 \x02(\x0c\x12#\n\x04\x61rgs\x18\x02 \x03(\x0b\x32\x15.Mysqlx.Datatypes.Any\x12\x1f\n\x10\x63ompact_metadata\x18\x04 \x01(\x08:\x05\x66\x61lse\"\x0f\n\rStmtExecuteOkB\x1b\n\x17\x63om.mysql.cj.x.protobufH\x03')
|
||||
,
|
||||
dependencies=[mysqlx__datatypes__pb2.DESCRIPTOR,])
|
||||
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
|
||||
|
||||
|
||||
|
||||
|
||||
_STMTEXECUTE = _descriptor.Descriptor(
|
||||
name='StmtExecute',
|
||||
full_name='Mysqlx.Sql.StmtExecute',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
_descriptor.FieldDescriptor(
|
||||
name='namespace', full_name='Mysqlx.Sql.StmtExecute.namespace', index=0,
|
||||
number=3, type=9, cpp_type=9, label=1,
|
||||
has_default_value=True, default_value=_b("sql").decode('utf-8'),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='stmt', full_name='Mysqlx.Sql.StmtExecute.stmt', index=1,
|
||||
number=1, type=12, cpp_type=9, label=2,
|
||||
has_default_value=False, default_value=_b(""),
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='args', full_name='Mysqlx.Sql.StmtExecute.args', index=2,
|
||||
number=2, type=11, cpp_type=10, label=3,
|
||||
has_default_value=False, default_value=[],
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
_descriptor.FieldDescriptor(
|
||||
name='compact_metadata', full_name='Mysqlx.Sql.StmtExecute.compact_metadata', index=3,
|
||||
number=4, type=8, cpp_type=7, label=1,
|
||||
has_default_value=True, default_value=False,
|
||||
message_type=None, enum_type=None, containing_type=None,
|
||||
is_extension=False, extension_scope=None,
|
||||
options=None),
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=56,
|
||||
serialized_end=177,
|
||||
)
|
||||
|
||||
|
||||
_STMTEXECUTEOK = _descriptor.Descriptor(
|
||||
name='StmtExecuteOk',
|
||||
full_name='Mysqlx.Sql.StmtExecuteOk',
|
||||
filename=None,
|
||||
file=DESCRIPTOR,
|
||||
containing_type=None,
|
||||
fields=[
|
||||
],
|
||||
extensions=[
|
||||
],
|
||||
nested_types=[],
|
||||
enum_types=[
|
||||
],
|
||||
options=None,
|
||||
is_extendable=False,
|
||||
syntax='proto2',
|
||||
extension_ranges=[],
|
||||
oneofs=[
|
||||
],
|
||||
serialized_start=179,
|
||||
serialized_end=194,
|
||||
)
|
||||
|
||||
_STMTEXECUTE.fields_by_name['args'].message_type = mysqlx__datatypes__pb2._ANY
|
||||
DESCRIPTOR.message_types_by_name['StmtExecute'] = _STMTEXECUTE
|
||||
DESCRIPTOR.message_types_by_name['StmtExecuteOk'] = _STMTEXECUTEOK
|
||||
|
||||
StmtExecute = _reflection.GeneratedProtocolMessageType('StmtExecute', (_message.Message,), dict(
|
||||
DESCRIPTOR = _STMTEXECUTE,
|
||||
__module__ = 'mysqlx_sql_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Sql.StmtExecute)
|
||||
))
|
||||
_sym_db.RegisterMessage(StmtExecute)
|
||||
|
||||
StmtExecuteOk = _reflection.GeneratedProtocolMessageType('StmtExecuteOk', (_message.Message,), dict(
|
||||
DESCRIPTOR = _STMTEXECUTEOK,
|
||||
__module__ = 'mysqlx_sql_pb2'
|
||||
# @@protoc_insertion_point(class_scope:Mysqlx.Sql.StmtExecuteOk)
|
||||
))
|
||||
_sym_db.RegisterMessage(StmtExecuteOk)
|
||||
|
||||
|
||||
DESCRIPTOR.has_options = True
|
||||
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\027com.mysql.cj.x.protobufH\003'))
|
||||
# @@protoc_insertion_point(module_scope)
|
||||
Reference in New Issue
Block a user