Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ClickHouse/clickhouse-rs
/ functions
Functions
959 in github.com/ClickHouse/clickhouse-rs
⨍
Functions
959
◇
Types & classes
219
↓ 4 callers
Function
string
See https://clickhouse.tech/docs/en/sql-reference/syntax/#syntax-string-literal
src/sql/escape.rs:6
↓ 4 callers
Function
t
(arg: &[&str], expected: &str)
src/sql/mod.rs:197
↓ 4 callers
Function
to_u64_saturating
(n: usize)
src/insert_formatted.rs:781
↓ 4 callers
Method
with_period
The time between `INSERT`s. Note that [`Inserter`] doesn't spawn tasks or threads to check the elapsed time, all checks are performed only on [`Inser
src/inserter.rs:148
↓ 3 callers
Method
abort
(&mut self)
src/insert_formatted.rs:509
↓ 3 callers
Function
assert_queries_user_agents
(client: &Client, table_name: &str, expected_user_agent: &str)
tests/it/user_agent.rs:39
↓ 3 callers
Function
check
(client: Client)
tests/it/compression.rs:5
↓ 3 callers
Function
create_user_and_role
Create a test user and role for `test_db_name` with no default grants. Returns a `Client` with the user configured, and the role name.
tests/it/main.rs:344
↓ 3 callers
Method
decoded_bytes
(&self)
src/cursors/row.rs:183
↓ 3 callers
Method
do_execute
(self, default_format: Option<&str>)
src/query.rs:205
↓ 3 callers
Function
error_msg
(err: impl Display)
src/sql/mod.rs:140
↓ 3 callers
Function
escape
(src: &str, dst: &mut impl fmt::Write)
src/sql/escape.rs:19
↓ 3 callers
Function
extract_exception
(chunk: &[u8], tag: Option<&[u8]>)
src/response.rs:346
↓ 3 callers
Method
fetch_one
Executes the query and returns just a single row. Note that `T` must be owned.
src/query.rs:123
↓ 3 callers
Function
get_tracer
()
tests/it/opentelemetry.rs:164
↓ 3 callers
Method
init_request
(&mut self)
src/insert_formatted.rs:452
↓ 3 callers
Method
insert
(&mut self)
src/inserter.rs:356
↓ 3 callers
Method
insert_arrow
(&self, table: &str)
ext-arrow/src/lib.rs:63
↓ 3 callers
Method
is_not_started
(&self)
src/insert_formatted.rs:79
↓ 3 callers
Function
lz4_compress
(uncompressed: &[u8])
src/lib.rs:695
↓ 3 callers
Method
make_span
(&self, response_format: Option<&str>)
src/query.rs:175
↓ 3 callers
Function
max_datetime64
The allowed range for DateTime64(8) and lower is [1900-01-01 00:00:00, 2299-12-31 23:59:59.99999999] UTC See https://clickhouse.com/docs/en/sql-refere
examples/data_types_derive_simple.rs:300
↓ 3 callers
Function
parse_inner_types
Considers the element type parsed once we reach a comma outside of parens AND after an unescaped tick. The most complicated cases are values names in
types/src/data_types.rs:781
↓ 3 callers
Function
parse_rbwnat_columns_header
(mut buffer: impl Buf)
types/src/lib.rs:32
↓ 3 callers
Method
pending
Returns statistics about data not yet inserted into ClickHouse.
src/inserter.rs:287
↓ 3 callers
Method
poll_end
(&mut self, cx: &mut Context<'_>)
src/insert_formatted.rs:413
↓ 3 callers
Function
print_header
(add: Option<&str>)
benches/common_select.rs:50
↓ 3 callers
Function
provide
()
tests/it/mock.rs:20
↓ 3 callers
Function
provide_with_summary
(rows: impl IntoIterator<Item = T>, summary: &str)
src/test/handlers.rs:67
↓ 3 callers
Function
query
(numbers: u32)
examples/stream_into_file.rs:14
↓ 3 callers
Function
read_env_var
(key: &str)
examples/clickhouse_cloud.rs:73
↓ 3 callers
Function
reason
(status: StatusCode, exception_code: Option<String>)
src/response.rs:179
↓ 3 callers
Method
received_bytes
(&self)
src/cursors/row.rs:177
↓ 3 callers
Function
run
(c: &mut Criterion, name: &str, f: impl Fn(Client, u64, Compression, bool) -> F)
benches/mocked_insert.rs:133
↓ 3 callers
Function
sample
()
src/rowbinary/tests.rs:83
↓ 3 callers
Function
test
(chunks: &[&[u8]], expected: &[u8])
src/compression/lz4.rs:201
↓ 3 callers
Method
to_str
(self)
src/row_metadata.rs:199
↓ 3 callers
Method
with_default_roles
Clear any explicitly set [roles] from this `Client` instance. Overrides any roles previously set by [`Client::with_roles`] or [`Client::with_setting`
src/lib.rs:266
↓ 3 callers
Method
with_header
Used to specify a header that will be passed to all queries. # Example ``` # use clickhouse::Client; Client::default().with_header("Cookie", "A=1");
src/lib.rs:348
↓ 3 callers
Function
zstd
()
tests/it/compression.rs:41
↓ 2 callers
Method
abort
(&mut self)
src/insert.rs:251
↓ 2 callers
Method
add_product_info
(&mut self, product_name: String, product_version: String)
src/lib.rs:400
↓ 2 callers
Method
buf_len
(&self)
src/insert_formatted.rs:545
↓ 2 callers
Method
buffer_mut
(&mut self)
src/insert_formatted.rs:571
↓ 2 callers
Method
buffered
Wrap this `InsertFormatted` with a buffer of a default size. The returned type also implements [`AsyncWrite`]. To set the capacity, use [`Self::buff
src/insert_formatted.rs:285
↓ 2 callers
Function
calc_checksum
(buffer: &[u8])
src/compression/lz4.rs:154
↓ 2 callers
Function
check
(client: Client, expected_ratio: f64)
tests/it/cursor_stats.rs:5
↓ 2 callers
Function
compress
(uncompressed: &[u8], level: Option<i32>)
src/compression/zstd.rs:25
↓ 2 callers
Function
create_readonly_user
(client: &Client, database: &str)
tests/it/main.rs:305
↓ 2 callers
Method
deserialize_bytes
(self, visitor: V)
src/rowbinary/de.rs:203
↓ 2 callers
Method
deserialize_newtype_struct
( self, name: &str, visitor: V, )
src/rowbinary/de.rs:315
↓ 2 callers
Method
deserialize_tuple
(self, len: usize, visitor: V)
src/rowbinary/de.rs:243
↓ 2 callers
Method
do_write
(&mut self, row: &T::Value<'_>)
src/insert.rs:198
↓ 2 callers
Function
fetch_batches
(client: &Client)
examples/inserter.rs:118
↓ 2 callers
Function
flag_as_str
(flag: bool)
benches/common_select.rs:56
↓ 2 callers
Method
flush
Flush the buffered data without ending the request. The buffer is flushed automatically by [`Self::write()`] if it is already full. Manual flushing
ext-arrow/src/lib.rs:218
↓ 2 callers
Function
generate_dates
(years: Range<i32>, count: usize)
tests/it/time.rs:222
↓ 2 callers
Function
generate_dates
(years: impl RangeBounds<i32>, count: usize)
tests/it/chrono.rs:244
↓ 2 callers
Method
get_schema_index
(&self, struct_idx: usize)
src/rowbinary/validation.rs:201
↓ 2 callers
Method
get_validation
(&self)
src/lib.rs:573
↓ 2 callers
Method
is_negative
(&self)
src/types/int256.rs:361
↓ 2 callers
Method
is_started
(&self)
ext-arrow/src/lib.rs:257
↓ 2 callers
Function
make_insert
(client: &Client, data: &[SomeRow])
examples/mock.rs:21
↓ 2 callers
Function
make_select
(client: &Client)
examples/mock.rs:14
↓ 2 callers
Function
max_datetime
()
examples/data_types_derive_simple.rs:293
↓ 2 callers
Function
max_datetime64_nanos
DateTime64(8)/DateTime(9) allowed range is [1900-01-01 00:00:00, 2262-04-11 23:47:16] UTC See https://clickhouse.com/docs/en/sql-reference/data-types/
examples/data_types_derive_simple.rs:311
↓ 2 callers
Function
null_encoding_for
Returns the wire-level null encoding of the given type, transparently stripping `LowCardinality(T)` and `SimpleAggregateFunction(_, T)` since those ar
src/rowbinary/validation.rs:230
↓ 2 callers
Function
parse_enum_index
(input_bytes: &[u8], input: &str)
types/src/data_types.rs:844
↓ 2 callers
Method
poll
(&mut self, mut sleep: Pin<&mut Sleep>, cx: &mut Context<'_>)
src/insert_formatted.rs:759
↓ 2 callers
Method
poll_flush_inner
(&mut self, cx: &mut Context<'_>)
src/insert_formatted.rs:654
↓ 2 callers
Method
poll_next
(&mut self, cx: &mut Context<'_>)
src/cursors/raw.rs:38
↓ 2 callers
Method
poll_wait_handle
(&mut self, cx: &mut Context<'_>)
src/insert_formatted.rs:418
↓ 2 callers
Method
poll_write_inner
(&mut self, data: &[u8], cx: &mut Context<'_>)
src/insert_formatted.rs:617
↓ 2 callers
Function
prepare_hyper_rustls_connector
( connector: HttpConnector, provider: rustls::crypto::CryptoProvider, )
src/http_client.rs:80
↓ 2 callers
Method
propagate_server_error
(&self)
src/test/mock.rs:118
↓ 2 callers
Function
random_polygon
()
examples/data_types_derive_containers.rs:130
↓ 2 callers
Function
random_ring
()
examples/data_types_derive_containers.rs:126
↓ 2 callers
Function
read_string
(mut buffer: impl Buf)
types/src/decoders.rs:6
↓ 2 callers
Method
read_vec
(&mut self, size: usize)
src/rowbinary/de.rs:93
↓ 2 callers
Method
remove_low_cardinality
LowCardinality(T) -> T
types/src/data_types.rs:181
↓ 2 callers
Method
remove_simple_aggregate_function
SimpleAggregateFunction(fn, T) -> T The wire format of a `SimpleAggregateFunction` column is identical to its inner type. This method strips the wrap
types/src/data_types.rs:193
↓ 2 callers
Method
request
(&self, req: Request<RequestBody>)
src/http_client.rs:31
↓ 2 callers
Function
row_impl
(input: DeriveInput)
macros/src/lib.rs:52
↓ 2 callers
Function
row_insert_metadata_query
Also needed by `it::insert::cache_row_metadata()`
src/lib.rs:705
↓ 2 callers
Function
run_on_st_runtime
(name: &str, f: impl Future + Send + 'static)
benches/common.rs:140
↓ 2 callers
Method
schema
(&self)
ext-arrow/src/lib.rs:388
↓ 2 callers
Function
select_bytes
( client: Client, min_size: u64, compression: Compression, )
benches/mocked_select.rs:129
↓ 2 callers
Function
select_count
(client: &Client)
examples/usage.rs:118
↓ 2 callers
Method
send_compressed
Send a chunk of pre-compressed data. # Errors In addition to network errors, this will return [`Error::Compression`] if the [`Client`][crate::Client]
src/insert_formatted.rs:857
↓ 2 callers
Method
send_inner
(&mut self, mut data: Bytes, original_size: u64)
src/insert_formatted.rs:322
↓ 2 callers
Method
serialize_str
(mut self, value: &str)
src/sql/ser.rs:144
↓ 2 callers
Function
serve
( request: Request<Incoming>, compression: Compression, with_validation: bool, )
benches/mocked_select.rs:21
↓ 2 callers
Function
serve
( request: Request<Incoming>, compression: Compression, with_validation: bool, )
benches/mocked_insert.rs:21
↓ 2 callers
Method
set_period_bias
(&mut self, max_bias: f64)
src/ticks.rs:39
↓ 2 callers
Method
set_remaining
(&self, n: usize)
src/bytes_ext.rs:31
↓ 2 callers
Method
set_timeouts
See [`Inserter::with_timeouts()`].
src/inserter.rs:236
↓ 2 callers
Function
skip_incoming
(request: Request<Incoming>)
benches/common.rs:91
↓ 2 callers
Function
spawn_data_generator
(n: u32, sparse: bool)
examples/inserter.rs:101
↓ 2 callers
Function
start_runner
()
benches/common.rs:127
↓ 2 callers
Function
start_server
(addr: SocketAddr, serve: S)
benches/common.rs:52
← previous
next →
101–200 of 959, ranked by callers