ch2rs

Crates.ioch2rs
lib.rsch2rs
version0.1.6
sourcesrc
created_at2021-05-29 22:28:16.821323
updated_at2022-06-09 06:55:15.879824
descriptionGenerate Rust structs from ClickHouse rows
homepage
repositoryhttps://github.com/loyd/ch2rs
max_upload_size
id403662
size63,782
Paul Loyd (loyd)

documentation

README

ch2rs

Usage

cargo install ch2rs

Help

$ ch2rs --help
ch2rs 0.1.6

USAGE:
    ch2rs [FLAGS] [OPTIONS] <table>

FLAGS:
    -D               Generate `Deserialize` instances
    -h, --help       Prints help information
        --owned      Generate only owned types
    -S               Generate `Serialize` instances
    -V, --version    Prints version information

OPTIONS:
    -B <bytes>...            Add `#[serde(with = "serde_bytes")]` to the provided column
    -d <database>            A database where the table is placed in [default: default]
    -I <ignore>...           Ignore a specified column
    -O <overrides>...        Override the type of the provided column
    -p <password>
    -T <types>...            Override the type, e.g. 'Decimal(18, 9)=fixnum::FixedPoint<i64, typenum::U9>'
    -U <url>                 ClickHouse server's URL [default: localhost:8123]
    -u <user>

ARGS:
    <table>    The table's name

Examples

See snapshots.

Commit count: 58

cargo fmt