ClickHouseExecutor

class ClickHouseExecutor(client: Client, scheduler: Scheduler = DEFAULT_SCHEDULER)

Runs statements over the HTTP client and decodes JSONEachRow, one record per line.

The client answers with a future; the body is read on scheduler, a bounded pool that rejects work beyond its queue rather than letting slow analytical queries pile up. Each statement carries its own query id: when a subscriber cancels, the request is abandoned and KILL QUERY stops the statement on the server, since an abandoned HTTP read does not always reach it.

Constructors

Link copied to clipboard
constructor(client: Client, scheduler: Scheduler = DEFAULT_SCHEDULER)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun rows(statement: ClickHouseStatement, settings: Map<String, String> = emptyMap()): Flux<ObjectNode>
Link copied to clipboard
fun table(database: String, name: String): Mono<ClickHouseTable>

Reads a table's columns and engine.