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

Can this SDK support Json or not? #33

Closed
TianyiLu opened this issue Aug 27, 2018 · 3 comments
Closed

Can this SDK support Json or not? #33

TianyiLu opened this issue Aug 27, 2018 · 3 comments

Comments

@TianyiLu
Copy link

I want to use JsonEachRow while inserting or querying, is there any support on Json ? and how can I set the parameters type?

ClickHouseParameter parameter = new ClickHouseParameter
{
DbType = DbType.Object,
ParameterName = "bulk",
Value = list.SafeSelect(x => x.JsonSerialize()).ToArray()
};

@killwort
Copy link
Owner

killwort commented Sep 1, 2018

No, it does not have json now. I was implementing driver before json datatype was introduced into clickhouse.
Currently I have plans to review new clickhouse features and implement some of them in the driver, however there's no ETA as current state is OK for my production environment.

@TianyiLu
Copy link
Author

TianyiLu commented Sep 3, 2018

Thanks for your reply.
So, is there any SDK support JsonEachRow insertion? I can try to switch my implementation to other language.

@killwort
Copy link
Owner

killwort commented Sep 3, 2018

Cannot say for sure. Most probably you could try any HTTP-based SDK (java, php, etc. - all SDKs except mine and CH's native C SDK utilize HTTP protocol) - they should support new features almost immediately due to the nature of the transport protocol.

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

No branches or pull requests

2 participants