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

feat: refactor the implementation of baseURL #27

Merged
merged 3 commits into from
Oct 5, 2023
Merged

feat: refactor the implementation of baseURL #27

merged 3 commits into from
Oct 5, 2023

Conversation

Oreoxmt
Copy link
Owner

@Oreoxmt Oreoxmt commented Oct 5, 2023

Refactor the management of server configuration: use a dictionary to manage the server used when calling TiDB Cloud API, the default value is:

{
    "v1beta": "https://api.tidbcloud.com/api/v1beta/",
    "billing": "https://billing.tidbapi.com/v1beta1/"
}

For internal test, you can use:

api = tidbcloudy.TiDBCloud(
	public_key="", private_key="",
	server_config={"v1beta": "xxx", "billing": "xxx"}})

@Oreoxmt Oreoxmt merged commit ce06157 into main Oct 5, 2023
@Oreoxmt Oreoxmt deleted the feat/baseURL branch October 5, 2023 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant