Skip to content

Commit b7a414a

Browse files
authored
Fix minor typos in ClickHouse go docs
1 parent 9fe3ae5 commit b7a414a

File tree

1 file changed

+2
-2
lines changed
  • docs/integrations/language-clients/go

1 file changed

+2
-2
lines changed

docs/integrations/language-clients/go/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ For a full summary of supported go types for each column type, see [Type Convers
603603
604604
### Querying rows {#querying-rows}
605605
606-
Users can either query for a single row using the `QueryRow` method or obtain a cursor for iteration over a result set via `Query`. While the former accepts a destination for the data to be serialized into, the latter requires the to call `Scan` on each row.
606+
Users can either query for a single row using the `QueryRow` method or obtain a cursor for iteration over a result set via `Query`. While the former accepts a destination for the data to be serialized into, the latter requires the call to `Scan` on each row.
607607
608608
```go
609609
row := conn.QueryRow(context.Background(), "SELECT * FROM example")
@@ -1576,7 +1576,7 @@ fmt.Printf("NamedDate count: %d\n", count)
15761576
15771577
Go contexts provide a means of passing deadlines, cancellation signals, and other request-scoped values across API boundaries. All methods on a connection accept a context as their first variable. While previous examples used context.Background(), users can use this capability to pass settings and deadlines and to cancel queries.
15781578
1579-
Passing a context created `withDeadline` allows execution time limits to be placed on queries. Not this is an absolute time and expiry will only release the connection and send a cancel signal to ClickHouse. `WithCancel` can alternatively be used to cancel a query explicitly.
1579+
Passing a context created `withDeadline` allows execution time limits to be placed on queries. Note this is an absolute time and expiry will only release the connection and send a cancel signal to ClickHouse. `WithCancel` can alternatively be used to cancel a query explicitly.
15801580
15811581
The helpers `clickhouse.WithQueryID` and `clickhouse.WithQuotaKey` allow a query id and quota key to be specified. Query ids can be useful for tracking queries in logs and for cancellation purposes. A quota key can be used to impose limits on ClickHouse usage based on a unique key value - see [Quotas Management ](/operations/access-rights#quotas-management)for further details.
15821582

0 commit comments

Comments
 (0)