Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abinpaul opened this issue Jan 7, 2020 · 1 comment

Comments

@abinpaul
Copy link

abinpaul commented Jan 7, 2020

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

@sadhathameed
Copy link

sadhathameed commented Sep 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants