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

Support sending query in a post-query body #328

Open
tsyrya opened this issue Jul 5, 2023 · 3 comments
Open

Support sending query in a post-query body #328

tsyrya opened this issue Jul 5, 2023 · 3 comments
Labels
question This issue is a question

Comments

@tsyrya
Copy link

tsyrya commented Jul 5, 2023

According to the documentation the query can be sent either as a query parameter or in the body of a post-request (https://clickhouse.com/docs/en/interfaces/http).

Am I right that this client only uses get-requests to select data?

If so, could you please add support of sending the sql-query in the body of a post requests?

Or maybe you have recommendation what the maximum length of the query should be ?

Thank you.

@DarkWanderer
Copy link
Owner

Hi. No. POST requests are used exclusively, with query being sent in the body of the query (instead of URL param) if server supports it. Is there a particular issue you are having with the library?

@DarkWanderer DarkWanderer added the question This issue is a question label Jul 13, 2023
@arwyl
Copy link

arwyl commented Dec 28, 2023

@DarkWanderer maybe there is a way to send command parameters in body instead of in url?
sometimes i have an error Invalid URI: The Uri string is too long. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions) at ClickHouse.Client.ADO.ClickHouseCommand.PostSqlQueryAsync(String sqlQuery, CancellationToken token)

@arwyl
Copy link

arwyl commented Dec 29, 2023

never mind, found the issue #270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is a question
Projects
None yet
Development

No branches or pull requests

3 participants