8000 Merge pull request #179 from martydertz/get-query-string · nchelaru/document-api-python@084871b · GitHub
[go: up one dir, main page]

Skip to content

Commit 084871b

Browse files
authored
Merge pull request tableau#179 from martydertz/get-query-string
Get query string
2 parents 8141596 + 9a98337 commit 084871b

File tree

1 file changed

8000
+4
-0
lines changed

1 file changed

+4
-0
lines changed

tableaudocumentapi/datasource.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ def _get_column_objects(self):
240240
return [_column_object_from_column_xml(self._datasourceTree, xml)
241241
for xml in self._datasourceTree.findall('.//column')]
242242

243+
244+
def _get_custom_sql(self):
245+
return [qry for qry in self._datasourceXML.iter('relation')]
246+
243247
def add_field(self, name, datatype, role, field_type, caption):
244248
""" Adds a base field object with the given values.
245249

0 commit comments

Comments
 (0)
0