{"id":20102482,"url":"https://github.com/clickhouse/ch2rs","last_synced_at":"2025-04-07T06:10:42.445Z","repository":{"id":44779979,"uuid":"371758245","full_name":"ClickHouse/ch2rs","owner":"ClickHouse","description":"Generate Rust structs from ClickHouse rows","archived":false,"fork":false,"pushed_at":"2024-11-30T08:21:57.000Z","size":100,"stargazers_count":32,"open_issues_count":5,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-31T04:05:35.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ClickHouse.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-28T16:23:03.000Z","updated_at":"2025-03-18T21:49:02.000Z","dependencies_parsed_at":"2025-01-05T07:52:18.075Z","dependency_job_id":"23a637bf-eb97-4a2b-a986-5e3f11d6ec4b","html_url":"https://github.com/ClickHouse/ch2rs","commit_stats":{"total_commits":66,"total_committers":5,"mean_commits":13.2,"dds":"0.10606060606060608","last_synced_commit":"04021773f6b560d960304df57707119bfd5b3cec"},"previous_names":["clickhouse/ch2rs","loyd/ch2rs"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fch2rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fch2rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fch2rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fch2rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClickHouse","download_url":"https://codeload.github.com/ClickHouse/ch2rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601448,"owners_count":20964864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:31:20.147Z","updated_at":"2025-04-07T06:10:42.422Z","avatar_url":"https://github.com/ClickHouse.png","language":"Rust","readme":"# ch2rs\n\nAn auxiliary utility for generating Rust structures from ClickHouse DB schemas for the official [clickhouse-rs](https://github.com/ClickHouse/clickhouse-rs) crate.\n\n## Usage\n\n```sh\ncargo install ch2rs\n```\n\nThe crate enables `rustls-tls` [client](https://github.com/ClickHouse/clickhouse-rs/blob/main/Cargo.toml) feature by default, which allows to work with HTTPS URLs. \nIf `rustls-tls` does not work in your use case, you can install the crate with `native-tls` instead:\n\n```sh\ncargo install ch2rs --features native-tls\n```\n\n### Help\n\n```sh\n$ ch2rs --help\n```\n\n```\nch2rs 0.1.7\n\nUSAGE:\n    ch2rs [FLAGS] [OPTIONS] \u003ctable\u003e\n\nFLAGS:\n    -D               Generate `Deserialize` instances\n    -h, --help       Prints help information\n        --owned      Generate only owned types\n    -S               Generate `Serialize` instances\n    -V, --version    Prints version information\n\nOPTIONS:\n    -B \u003cbytes\u003e...              Add `#[serde(with = \"serde_bytes\")]` to the provided column\n    -d \u003cdatabase\u003e              A database where the table is placed in [default: default]\n    -I \u003cignore\u003e...             Ignore a specified column\n    -O \u003coverrides\u003e...          Override the type of the provided column\n    -p \u003cpassword\u003e\n        --derive \u003ctrait\u003e...    Add `#[derive(\u003ctrait\u003e)]` to the generated types\n    -T \u003ctypes\u003e...              Override the type, e.g. 'Decimal(18, 9)=fixnum::FixedPoint\u003ci64, typenum::U9\u003e'\n    -U \u003curl\u003e                   ClickHouse server's URL [default: localhost:8123]\n    -u \u003cuser\u003e\n\nARGS:\n    \u003ctable\u003e    The table's name\n```\n\n## Examples\n\nSee [snapshots](tests/snapshots).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickhouse%2Fch2rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclickhouse%2Fch2rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickhouse%2Fch2rs/lists"}