Commit ec7d145
James William Pye
Split
Additionally:
- Isolate Database specific APIs from Connection APIs.
(pg_api.Connection inherits from pg_api.Database)
- Correct ife_snapshot_text for many classes.
- Remove __getitem__ method from Cursor APIs.
- Rewrite pq3.Connection.connect
. Loop over SocketCreator's that are created by the Connector
. Use the ClientCannotConnectError when unable to connect for
any reason; The specific cause is included in a
`connection_failures` attribute on the exception instance.
. Properly, perhaps, support the sslmode parameter.
- Remove references to `long` from typio.
- Add an attribute_map method to TypeIO for client_encoding dependent
decoding of TupleDescriptor's `attribute_map` property.
The connector split resulted in a nice cleanup of the code. It also helped
substantiate `Driver`'s existence due to selectivity methods on the driver
implementation.pq3.Connector into addressing specific subclasses.1 parent 8cb6673 commit ec7d145
9 files changed
Lines changed: 1204 additions & 626 deletions
File tree
- postgresql
- driver
- protocol
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
| 270 | + | |
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
| 278 | + | |
275 | 279 | | |
276 | 280 | | |
277 | 281 | | |
| |||
299 | 303 | | |
300 | 304 | | |
301 | 305 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | | - | |
| 325 | + | |
328 | 326 | | |
329 | 327 | | |
330 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
0 commit comments