ClickHouse / clickhouse-rs

Official pure Rust typed client for ClickHouse DB
https://clickhouse.com
Apache License 2.0
315 stars 87 forks source link

feat(derive): use rename_all rule for container when naming fields #117

Closed v3xro closed 2 months ago

v3xro commented 3 months ago

Fixes #71

Not an expert in serde-derive, let me know if there's a better way to express this.

CLAassistant commented 3 months ago

CLA assistant check
All committers have signed the CLA.

serprex commented 2 months ago

@loyd @slvrtrn I added a test case to v3xro's fork. There's one ambiguity which may want to be changed: rename_all camelCase overrides an explicit snake_case rename tag, see fix_id