memsql / memsql-python

This repository holds some python libraries and plugins designed to be used with MemSQL.
MIT License
62 stars 33 forks source link

Feature: Push down connection-checked errors into non-pooled connection code #9

Open carlsverre opened 8 years ago

carlsverre commented 8 years ago

Right now, when an error occurs in a pooled connection we test to determine if its a connection exception or not - and if it is we raise PoolConnectionException. The idea of this task is to push that logic down into database.py such that all connections have this helpful exception logic. This is helpful since connections can crash due to a lot of different exceptions - and you usually just care that the connection is down.