Skip to content

Commit

Permalink
add documentation for ResultSet.column
Browse files Browse the repository at this point in the history
  • Loading branch information
laowantong committed Mar 27, 2024
1 parent 17ab97c commit 15b04d4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@ result['richard2']

+++

Iterating on the values of a single column is supported:

+++

```
result = %sql select * from writer
list(result.column('last_name'))
```

+++

Results can also be retrieved as an iterator of dictionaries (``result.dicts()``)
or a single dictionary with a tuple of scalar values per key (``result.dict()``)

Expand Down

0 comments on commit 15b04d4

Please sign in to comment.