document-api-python icon indicating copy to clipboard operation
document-api-python copied to clipboard

Please add the the feature to update "warehouse" name in database connection

Open abinpaul opened this issue 6 years ago • 1 comments

Hi

from tableaudocumentapi import Datasource sourceTDS = Datasource.from_file('xyz.tdsx') sourceTDS.connections[0].warehouse = "REPORTING" sourceTDS.connections[0].server = "MY-NEW-SERVER" sourceTDS.connections[0].dbname = "NEW-DATABASE" sourceTDS.connections[0].username = "benl" sourceTDS.save()

In the above code warehouse alone is not getting updated.Could you please help to update the warehouse also.This is useful when working with snowflake cloud database

Thanks in advance Abin

abinpaul avatar Jan 07 '20 12:01 abinpaul

was able to update warehouse successfully implementing below line sourceTDS.connections[0]._connectionXML.attrib["warehouse"] = "warehouse_name"

sadhathameed avatar Sep 06 '24 05:09 sadhathameed