Change database table in a workbook
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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'
- Ngôn ngữ chính
- Python
- Star
- 363
- Fork
- 183
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tableau/document-api-python
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
tableau/document-api-python#270 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
tableau/document-api-python#260 ·
-
docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
tableau/document-api-python#258 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
tableau/document-api-python#251 · 2 bình luận ·
-
Alternative for Document Api Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
tableau/document-api-python#250 · 2 bình luận ·
Tất cả issue của tableau/document-api-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
🐛 Bug 🔔 Pending processing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
jumpserver/jumpserver#17584 ·