Type 2 Add service to ConnectionItem properties For Oracle

未关闭
#1,807 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
62/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
python
领域
api, databases

调研方向

Start with the ConnectionItem objects returned through datasource.connections and compare their Oracle connection attributes with the behavior described in issue 1571. Done means the Oracle service value is available on the connection and allows databases sharing the same server address and port to be distinguished.

由索引模型根据 Issue 内容生成。

描述

Server-Side Enhancement ui-exists

Summary

Please include the Oracle Service Name in the ConnectionItems Attributes, similar to the functionality provided under: https://github.com/tableau/server-client-python/issues/1571

Description

Issue 1571 seems to have added the attribute database_name to the ConnectionItems Class, however it returns with 'none' when the connection_type is oracle

The following code
for i, conn in enumerate(datasource.connections, start=1):
for attr in dir(conn):
if not attr.startswith("_"):
value = getattr(conn, attr)
if not callable(value):
print(f"{attr}: {value}")

returns
auth_type: RDBMS
connection_credentials: None
connection_type: oracle
database_name: None
datasource_id: 12345678-90ab-cde1-2345-1234567890ab
datasource_name: Weekly data source
embed_password: False
id: 22345678-00ab-dde1-3345-2234567890ab
password: None
query_tagging: None
server_address: oracle.db.server
server_port: 1521
username: dbuser

Ideally I'd like the attribute 'service' added or for database_name to be dynamically populated with the relevant connection string attribute.
Mirroring the requirement specified in the previous issue we would like to be able to differentiate between connections to different databases on the same server, that share the same listener port.

主要语言
Python
星标
716
派生
446
平均合并
8 天 8 小时
30 天内合并 PR
2

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tableau/server-client-python 的其他 Issue

查看 tableau/server-client-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。