@@ -16,8 +16,6 @@ def __init__(self, connxml):
16
16
self ._server = connxml .get ('server' )
17
17
self ._username = connxml .get ('username' )
18
18
self ._authentication = connxml .get ('authentication' )
19
- self ._schema = connxml .get ('schema' )
20
- self ._service = connxml .get ('service' )
21
19
self ._class = connxml .get ('class' )
22
20
self ._port = connxml .get ('port' , None )
23
21
self ._query_band = connxml .get ('query-band-spec' , None )
@@ -28,7 +26,7 @@ def __repr__(self):
28
26
29
27
@classmethod
30
28
def from_attributes (cls , server , dbname , username , dbclass , port = None , query_band = None ,
31
- initial_sql = None , authentication = '' , schema = '' , service = '' ):
29
+ initial_sql = None , authentication = '' ):
32
30
"""Creates a new connection that can be added into a Data Source.
33
31
defaults to `''` which will be treated as 'prompt' by Tableau."""
34
32
@@ -37,8 +35,6 @@ def from_attributes(cls, server, dbname, username, dbclass, port=None, query_ban
37
35
xml .server = server
38
36
xml .dbname = dbname
39
37
xml .username = username
40
- xml .schema = schema
41
- xml .service = service
42
38
xml .dbclass = dbclass
43
39
xml .port = port
44
40
xml .query_band = query_band
@@ -210,43 +206,3 @@ def initial_sql(self, value):
210
206
pass
211
207
else :
212
208
self ._connectionXML .set ('one-time-sql' , value )
213
-
214
- @property
215
- def schema (self ):
216
- """Database schema for the connection. Not the table name."""
217
- return self ._schema
218
-
219
- @schema .setter
220
- def schema (self , value ):
221
- """
222
- Set the connection's schema property.
223
-
224
- Args:
225
- value: New name of the database schema. String.
226
-
227
- Returns:
228
- Nothing.
229
-
230
- """
231
- self ._schema = value
232
- self ._connectionXML .set ('schema' , value )
233
-
234
- @property
235
- def service (self ):
236
- """Database service for the connection. Not the table name."""
237
- return self ._service
238
-
239
- @service .setter
240
- def service (self , value ):
241
- """
242
- Set the connection's service property.
243
-
244
- Args:
245
- value: New name of the database service. String.
246
-
247
- Returns:
248
- Nothing.
249
-
250
- """
251
- self ._service = value
252
- self ._connectionXML .set ('service' , value )
0 commit comments