Skip to content

Add support for raw queries without going through query builder #234

@slvrtrn

Description

@slvrtrn

Description

Support for raw queries (without going through the query builder) is missing — ? must be escaped as ?? even when no arguments are used and so on. This can be annoying if a custom query builder is used.

Implementation

This part:

https://github.com/ClickHouse/clickhouse-rs/blob/v0.13.3/src/query.rs#L30-L34

can be made lazy + a builder method that alters the builder behavior, or we can just add Query::raw or Query::new_raw that just uses the query string as-is, which is simpler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions