Skip to content

Support for parameterised queries #16

@roborourke

Description

@roborourke

Hi, thanks for publishing this library, it looks really promising and straightforward to use.

I currently have an implementation using the HTTP interface which lets me do parameterised queries like so:

# query not URL encoded for ease of reading
http://localhost:8123/?query=select * from t where event_type = {type:String};&param_type=click

Would it be possible to introduce this feature? I know there are encoding functions but it would be good to make ClickHouse do the work, I'm just not sure how.

Possible interface:

$client->query( 'select * from t where event_type = {type:String}', [
    'type' => 'click',
] )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions