summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/pool.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-04-02 11:39:26 +0000
committerJason Kirtland <jek@discorporate.us>2008-04-02 11:39:26 +0000
commitf12969a4d8dd8a4f91a9da4cc9d855457a5a0060 (patch)
tree274125cdcd73dbcea79575b7a82810032ae0be36 /lib/sqlalchemy/pool.py
parenta0000075437370ae23d0db48c706a4237f4e43f3 (diff)
downloadsqlalchemy-f12969a4d8dd8a4f91a9da4cc9d855457a5a0060.tar.gz
- Revamped the Connection memoize decorator a bit, moved to engine
- MySQL character set caching is more aggressive but will invalidate the cache if a SET is issued. - MySQL connection memos are namespaced: info[('mysql', 'server_variable')]
Diffstat (limited to 'lib/sqlalchemy/pool.py')
-rw-r--r--lib/sqlalchemy/pool.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py
index e22d1d8d3..94d9127f0 100644
--- a/lib/sqlalchemy/pool.py
+++ b/lib/sqlalchemy/pool.py
@@ -58,21 +58,6 @@ def clear_managers():
manager.close()
proxies.clear()
-def connection_cache_decorator(func):
- """apply caching to the return value of a function, using
- the 'info' collection on its given connection."""
-
- name = func.__name__
-
- def do_with_cache(self, connection):
- try:
- return connection.info[name]
- except KeyError:
- value = func(self, connection)
- connection.info[name] = value
- return value
- return do_with_cache
-
class Pool(object):
"""Base class for connection pools.