mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 02:41:07 +00:00
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:
parent
d089d9ce82
commit
c2916fbf82
3 changed files with 13 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -79,6 +79,11 @@
|
|||
return available;
|
||||
}
|
||||
|
||||
- (GSCache*) cache
|
||||
{
|
||||
return [q cache];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
SQLClient **clients;
|
||||
|
|
Loading…
Reference in a new issue