add -cache method for client pool

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38455 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2015-04-13 09:23:29 +00:00
parent d089d9ce82
commit c2916fbf82
3 changed files with 13 additions and 0 deletions

View file

@ -1,5 +1,6 @@
2015-04-13 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.h:
* SQLClientPool.m:
Make sure clients provided temporarily in convenience methods are
swallowed by the pool again as soon as possible. Also trap and
@ -7,6 +8,7 @@
the client being in use longer than necessary after an exception.
Also, avoid taking clients from the pool in a few cases wehere we
don't actually need to.
Add -cache method for SQLClientPool.
2015-04-12 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1507,6 +1507,12 @@ SQLCLIENT_PRIVATE
*/
- (int) availableConnections;
/**
* Returns the cache used by clients in the pool for storing the results of
* requests made through them. Creates a new cache if necessary.
*/
- (GSCache*) cache;
/**
* Creates a pool of clients using a single client configuration.<br />
* Calls -initWithConfiguration:name:pool: (passing NO to say the client

View file

@ -79,6 +79,11 @@
return available;
}
- (GSCache*) cache
{
return [q cache];
}
- (void) dealloc
{
SQLClient **clients;