From 15b04d45f9811c6200b57a21bff7fc7f300bb1de Mon Sep 17 00:00:00 2001 From: Aristide Date: Wed, 27 Mar 2024 13:23:10 +0100 Subject: [PATCH] add documentation for ResultSet.column --- doc/intro.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/intro.md b/doc/intro.md index 07bc3dfce..f521f48c2 100644 --- a/doc/intro.md +++ b/doc/intro.md @@ -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()``)