Create datasource from scratch

Open
#172 5 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
api, databases

Research direction

Start with the TSC.DatasourceItem entry point and the server.datasources.publish call shown in the issue, then inspect how tds/tdsx files are currently used. Determine whether publishing can accept only connection details and a table name, and define the supported behavior before considering implementation or tests.

Written by the indexing model from the issue text.

Description

connectorRequest enhancement question

Hi,

It's not an issue but more a question :).
I would like to create a datasource from scratch using python TSC, with only the following information:

  • table name of the database
  • server name
  • host
  • username
  • password

Do you have any idea?

I would like to avoid the creation of a tds/tdsx file first. Then I have not issue to publish.

new_datasource = TSC.DatasourceItem(project_id,name=datasource_name)
server.datasources.publish(new_datasource, file_path, 'CreateNew',connection_credentials=None)

Thank you,

Mathilde

Dominant language
Python
Stars
363
Forks
183
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tableau/document-api-python

All issues in tableau/document-api-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.