Crate klickhouse[][src]

Modules

errors

Error generator functions used by klickhouse_derive

Structs

Client

Client handle for a Clickhouse connection, has internal reference to connection, and can be freely cloned and sent across threads.

ClientOptions

Options set for a Clickhouse connection.

Date

Wrapper type for Clickhouse Date type.

DateTime

Wrapper type for Clickhouse DateTime type.

DateTime64

Wrapper type for Clickhouse DateTime64 type.

Error

The Error type, a wrapper around a dynamic error type.

FixedPoint32

Wrapper type for Clickhouse FixedPoint32 type.

FixedPoint64

Wrapper type for Clickhouse FixedPoint64 type.

FixedPoint128

Wrapper type for Clickhouse FixedPoint128 type.

FixedPoint256

Wrapper type for Clickhouse FixedPoint256 type.

Ipv4

Wrapper type for Clickhouse IPv4 type.

Ipv6

Wrapper type for Clickhouse IPv6 type.

Uuid

A Universally Unique Identifier (UUID).

i256

Wrapper type for Clickhouse Int256 type.

u256

Wrapper type for Clickhouse UInt256 type.

Enums

Type

A raw Clickhouse type.

Value

A raw Clickhouse value. Types are not strictly/completely preserved (i.e. types String and FixedString both are value String). Use this if you want dynamically typed queries.

Constants

VERSION_MAJOR

Clickhouse major version

VERSION_MINOR

Clickhouse minor version

Traits

FromSql

A type that can be converted from a raw Clickhouse SQL value.

Row

A row that can be deserialized and serialized from a raw Clickhouse SQL value. Generally this is not implemented manually, but using klickhouse_derive::Row. I.e. #[derive(klickhouse::Row)].

ToSql

A type that can be converted to a raw Clickhouse SQL value.

Type Definitions

Result

Result<T, Error>

Derive Macros

Row