Change database table in a workbook
まだ誰も着手していません。
評価
調査の方向性
Start with the sample code that updates datasource connection fields, then inspect how connections and their tables are represented in the Python library. Trace the existing datasource and connection handling before determining where table names can be exposed for editing. Done means table names can be iterated and changed, including for multiple tables, without changing joins.
索引モデルが issue の本文から書いたものです。
説明
I've run the sample code to change the database in a workbook. I can change the Server name, the Database name, the User name, and the Port, but there does not seem to be any way to change the database table. This is what I can do.
sourceWB.datasources[i].connections[0].server = 'myServer'
sourceWB.datasources[i].connections[0].dbname = 'myDbName'
sourceWB.datasources[i].connections[0].username = 'myUserName'
What I'd like to be able to do is specify a new database table as well. Of course this is a little more complicated if I'm joining multiple tables but all I need is to be able to iterate through the tables in each connection and change them. I don't need to be able to change the joins.
I want to do something like this:
for i in range(0, len(sourceWB.datasources[0].connections[0].tables)):
sourceWB.datasources[0].connections[0].tables[i] = 'tableName'
- 主要言語
- Python
- スター
- 363
- フォーク
- 183
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tableau/document-api-python のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
tableau/document-api-python#270 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
tableau/document-api-python#260 ·
-
docs
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
tableau/document-api-python#258 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
tableau/document-api-python#251 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
tableau/document-api-python#250 · コメント 2 件 ·
tableau/document-api-python の issue をすべて見る
似ている issue
-
🐛 Bug 🔔 Pending processing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
jumpserver/jumpserver#17584 ·
-
link-check link-check:sphinx-theme
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
modelscope/DiffSynth-Studio#1702 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
OpenHands/extensions#626 · コメント 1 件 ·