forked from googleapis/python-spanner-django
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclient.py
More file actions
24 lines (17 loc) · 791 Bytes
/
client.py
File metadata and controls
24 lines (17 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright 2020 Google LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
from django.db.backends.base.client import BaseDatabaseClient
from google.cloud.spanner_dbapi.exceptions import NotSupportedError
class DatabaseClient(BaseDatabaseClient):
"""Wraps the Django base class."""
def runshell(self, parameters):
"""Overrides the base class method.
TODO: Consider actual implementation of this method.
:type parameters: list
:param parameters: Currently not used.
:raises: :class:`~google.cloud.spanner_dbapi.exceptions.NotSupportedError`
"""
raise NotSupportedError("This method is not supported.")