We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 847dc6c commit 15a9cf3Copy full SHA for 15a9cf3
1 file changed
postgresql/documentation/driver.txt
@@ -1149,11 +1149,10 @@ Of course, more than one column can be transformed::
1149
>>> row.transform(None, str, str)
1150
('XX9301423', '2', '4.92')
1151
1152
-More advanced usage can make use of `postgresql.python.functools.Composition`
1153
-or lambdas for compound transformations in a single pass of the row::
+More advanced usage can make use of lambdas for compound transformations in a
+single pass of the row::
1154
1155
- >>> from postgresql.python.functools import Composition as compose
1156
- >>> strip_and_int = compose((stripxx, int))
+ >>> strip_and_int = lambda x: int(stripxx(x))
1157
>>> row.transform(strip_and_int)
1158
(9301423, 2, Decimal("4.92"))
1159
0 commit comments