We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2df891 commit fd67462Copy full SHA for fd67462
postgresql/documentation/driver.txt
@@ -1107,11 +1107,10 @@ Of course, more than one column can be transformed::
1107
>>> row.transform(None, str, str)
1108
('XX9301423', '2', '4.92')
1109
1110
-More advanced usage can make use of `postgresql.python.functools.Composition`
1111
-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::
1112
1113
- >>> from postgresql.python.functools import Composition as compose
1114
- >>> strip_and_int = compose((stripxx, int))
+ >>> strip_and_int = lambda x: int(stripxx(x))
1115
>>> row.transform(strip_and_int)
1116
(9301423, 2, Decimal("4.92"))
1117
0 commit comments