Python Records. Connection Pool

Important Considerations:

  • Setup pool class to sqlalchemy.pool.NullPool when you create database so we don't allow pooling and only one connection is created, and it is correctly deleted when we call close method.
  • Connection needs to be closed at the end of each call. Close it in finally block.