From 3282aef3654ce17f5ca66b2f2303f79743abf79c Mon Sep 17 00:00:00 2001 From: ruslandoga Date: Sat, 6 Apr 2024 23:10:29 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff606b1..ca43765 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ types = [:u64, :string] rowbinary = Ch.RowBinary.encode_rows(rows, types) %Ch.Result{num_rows: 2} = - Ch.query!(pid, ["INSERT INTO ch_demo(id) FORMAT RowBinary\n" | rowbinary]) + Ch.query!(pid, ["INSERT INTO ch_demo(id, text) FORMAT RowBinary\n" | rowbinary]) ``` Similarly, you can use [`RowBinaryWithNamesAndTypes`](https://clickhouse.com/docs/en/interfaces/formats#rowbinarywithnamesandtypes) which would additionally do something like a type check.