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.