File tree 1 file changed +2
-12
lines changed 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 3
3
import logging
4
4
import os
5
5
from typing import Any # noqa
6
- from typing import Optional
7
6
8
7
from . import credentials as credentials_impl , table , scheme , pool
9
8
from . import tracing
@@ -144,7 +143,7 @@ def __init__(
144
143
145
144
"""
146
145
self .endpoint = endpoint
147
- self .database = self . _maybe_add_slash ( database )
146
+ self .database = database
148
147
self .ca_cert = ca_cert
149
148
self .channel_options = channel_options
150
149
self .secure_channel = _utilities .is_secure_protocol (endpoint )
@@ -170,7 +169,7 @@ def __init__(
170
169
self .compression = compression
171
170
172
171
def set_database (self , database ):
173
- self .database = self . _maybe_add_slash ( database )
172
+ self .database = database
174
173
return self
175
174
176
175
@classmethod
@@ -207,15 +206,6 @@ def _update_attrs_by_kwargs(self, **kwargs):
207
206
)
208
207
setattr (self , key , value )
209
208
210
- def _maybe_add_slash (self , database : Optional [str ]) -> Optional [str ]:
211
- if not database :
212
- return database
213
-
214
- if database .startswith ("/" ):
215
- return database
216
-
217
- return f"/{ database } "
218
-
219
209
220
210
ConnectionParams = DriverConfig
221
211
You can’t perform that action at this time.
0 commit comments