8000 db schema commit that was mixed into another branch · jacalata/document-api-python@b29e1e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit b29e1e7

Browse files
committed
db schema commit that was mixed into another branch
1 parent 5ddf93f commit b29e1e7

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

tableaudocumentapi/connection.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,43 @@ def initial_sql(self, value):
208208
pass
209209
else:
210210
self._connectionXML.set('one-time-sql', value)
211+
212+
@property
213+
def schema(self):
214+
"""Database schema for the connection. Not the table name."""
215+
return self._schema
216+
217+
@schema.setter
218+
def schema(self, value):
219+
"""
220+
Set the connection's schema property.
221+
222+
Args:
223+
value: New name of the database schema. String.
224+
225+
Returns:
226+
Nothing.
227+
228+
"""
229+
self._schema = value
230+
self._connectionXML.set('schema', value)
231+
232+
@property
233+
def service(self):
234+
"""Database service for the connection. Not the table name."""
235+
return self._service
236+
237+
@service.setter
238+
def service(self, value):
239+
"""
240+
Set the connection's service property.
241+
242+
Args:
243+
value: New name of the database service. String.
244+
245+
Returns:
246+
Nothing.
247+
248+
"""
249+
self._service = value
250+
self._connectionXML.set('service', value)

0 commit comments

Comments
 (0)
0