Comments (2)
Hi, passing parameters is something I had half-ready but forgot to finalize. I'll add it to next release
The syntax is as follows:
using var command = connection.CreateCommand();
command.CommandText = "SELECT {id:Int32}, {str:String}, {tuple:Tuple(UInt8, String)}";
command.AddParameter("id", 906324);
command.AddParameter("str", "Any string, even with some unicode");
command.AddParameter("tuple", "(10, 'str')");
var result = await command.ExecuteReaderAsync();
This uses ClickHouse's parameters syntax
AddParameter
is an extension to do command.AddParameter(); parameter.Value = ...
etc.
from clickhouse.client.
Oh, nice, thanks @DarkWanderer
from clickhouse.client.
Related Issues (20)
- ClickHouseConnectionFactory.Instace HOT 1
- Query optimization suggestion HOT 5
- ClickHouseBulkCopy zipstream got a low performance because not in parallel mode HOT 2
- Please consider providing a strong name for ClickHouse.Client HOT 2
- ClickHouseBulkCopy sends additional empty request if BatchSize equals to rows collection length HOT 2
- Writing dates before 01.01.1970 HOT 1
- RowsWritten Problem
- Insert data for nested type inside a nested type HOT 1
- DataTable.Load fails with System.InvalidCastException exception HOT 2
- Support for Brotli compression format HOT 1
- The cancellation token does not cancel the queue on ClickHouse. HOT 5
- New ClickHouse type HOT 1
- Readact Connection String in Tracing HOT 1
- How to use HOT 1
- how to use bulkcopy HOT 1
- SSH tunnel connection HOT 1
- insert .. select from query with Kafka engine breaks down the server. HOT 3
- Unable to read data from the transport connection HOT 2
- The DecimalType scale defaults to 0 HOT 7
- Error when executing a bulk insert - Value was either too large or too small for a UInt16. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse.client.