mrs_plugin/lib/MrsDdlExecutorInterface.py (99 lines of code) (raw):
# Copyright (c) 2023, 2025, 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 designed to work 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 either included with
# the program or referenced in the documentation.
#
# 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
class MrsDdlExecutorInterface:
@property
def current_service_id(self):
raise NotImplementedError()
@property
def current_schema_id(self):
raise NotImplementedError()
def createRestMetadata(self, mrs_object: dict):
raise NotImplementedError()
def createRestService(self, mrs_object: dict):
raise NotImplementedError()
def createRestSchema(self, mrs_object: dict):
raise NotImplementedError()
def createRestDbObject(self, mrs_object: dict):
raise NotImplementedError()
def createRestContentSet(self, mrs_object: dict):
raise NotImplementedError()
def createRestContentFile(self, mrs_object: dict):
raise NotImplementedError()
def createRestAuthApp(self, mrs_object: dict):
raise NotImplementedError()
def createRestUser(self, mrs_object: dict):
raise NotImplementedError()
def cloneRestService(self, mrs_object: dict):
raise NotImplementedError()
def alterRestService(self, mrs_object: dict):
raise NotImplementedError()
def alterRestUserStatement(self, mrs_object: dict):
raise NotImplementedError()
def alterRestDbObject(self, mrs_object: dict):
raise NotImplementedError()
def alterRestContentSet(self, mrs_object: dict):
raise NotImplementedError()
def alterRestSchema(self, mrs_object: dict):
raise NotImplementedError()
def alterRestAuthApp(self, mrs_object: dict):
raise NotImplementedError()
def dropRestService(self, mrs_object: dict):
raise NotImplementedError()
def dropRestSchema(self, mrs_object: dict):
raise NotImplementedError()
def dropRestDbObject(self, mrs_object: dict):
raise NotImplementedError()
def dropRestContentSet(self, mrs_object: dict):
raise NotImplementedError()
def dropRestContentFile(self, mrs_object: dict):
raise NotImplementedError()
def dropRestAuthApp(self, mrs_object: dict):
raise NotImplementedError()
def dropRestUser(self, mrs_object: dict):
raise NotImplementedError()
def dropRestRoleStatement(self, mrs_object: dict):
raise NotImplementedError()
def grantRestRoleStatement(self, mrs_object: dict):
raise NotImplementedError()
def grantRestPrivilegeStatement(self, mrs_object: dict):
raise NotImplementedError()
def revokeRestPrivilegeStatement(self, mrs_object: dict):
raise NotImplementedError()
def revokeRestRoleStatement(self, mrs_object: dict):
raise NotImplementedError()
def use(self, mrs_object):
raise NotImplementedError()
def showRestMetadataStatus(self, mrs_object: dict):
raise NotImplementedError()
def showRestServices(self, mrs_object: dict):
raise NotImplementedError()
def showRestSchemas(self, mrs_object: dict):
raise NotImplementedError()
def showRestDbObjects(self, mrs_object: dict):
raise NotImplementedError()
def showRestContentSets(self, mrs_object: dict):
raise NotImplementedError()
def showRestContentFiles(self, mrs_object: dict):
raise NotImplementedError()
def showRestAuthApps(self, mrs_object: dict):
raise NotImplementedError()
def showCreateRestService(self, mrs_object: dict):
raise NotImplementedError()
def showCreateRestSchema(self, mrs_object: dict):
raise NotImplementedError()
def showCreateRestDbObject(self, mrs_object: dict):
raise NotImplementedError()
def showCreateRestContentSet(self, mrs_object: dict):
raise NotImplementedError()
def showCreateRestContentFile(self, mrs_object: dict):
raise NotImplementedError()
def showCreateRestAuthApp(self, mrs_object: dict):
raise NotImplementedError()
def showCreateRestUser(self, mrs_object: dict):
raise NotImplementedError()
def showRestRolesStatement(self, mrs_object: dict):
raise NotImplementedError()
def showRestGrantsStatement(self, mrs_object: dict):
raise NotImplementedError()
def showRestUser(self, mrs_object: dict):
raise NotImplementedError()
def dumpRestService(self, mrs_object: dict):
raise NotImplementedError()