forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf393ee0
committed
Change the debug variable to allow better control by the caller over how
debug output is managed. The user can continue to use the current methodof passing a formatting string to have a replacement done and output willbe sent to the standard output exactly as it did before. In addition theycan set it to a file object, sys.stderr for example, and the query stringwill be printed to it. Thay can also set it to a method (function) and thequery string will be passed to that method giving them the maximum flexibilityto do whatever they want with the query string.I will be working with the PyGreSQL documentation shortly and at that timewill properly document this feature.1 parent04c8785 commitf393ee0
1 file changed
+13
-7
lines changedLines changed: 13 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| 9 | + | |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
| |||
73 | 74 |
| |
74 | 75 |
| |
75 | 76 |
| |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
76 | 83 |
| |
77 | 84 |
| |
78 |
| - | |
79 |
| - | |
| 85 | + | |
80 | 86 |
| |
81 | 87 |
| |
82 | 88 |
| |
| |||
158 | 164 |
| |
159 | 165 |
| |
160 | 166 |
| |
161 |
| - | |
| 167 | + | |
162 | 168 |
| |
163 | 169 |
| |
164 | 170 |
| |
| |||
178 | 184 |
| |
179 | 185 |
| |
180 | 186 |
| |
181 |
| - | |
| 187 | + | |
182 | 188 |
| |
183 | 189 |
| |
184 | 190 |
| |
| |||
205 | 211 |
| |
206 | 212 |
| |
207 | 213 |
| |
208 |
| - | |
| 214 | + | |
209 | 215 |
| |
210 | 216 |
| |
211 | 217 |
| |
| |||
241 | 247 |
| |
242 | 248 |
| |
243 | 249 |
| |
244 |
| - | |
| 250 | + | |
245 | 251 |
| |
246 | 252 |
| |
247 | 253 |
| |
| |||
270 | 276 |
| |
271 | 277 |
| |
272 | 278 |
| |
273 |
| - | |
| 279 | + | |
274 | 280 |
| |
275 | 281 |
| |
276 | 282 |
| |
|
0 commit comments
Comments
(0)