add missing pool convenience method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38716 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2015-06-29 09:44:18 +00:00
parent f707d5bc9c
commit 68048a3019
2 changed files with 12 additions and 0 deletions

View file

@ -1722,6 +1722,7 @@ SQLCLIENT_PRIVATE
@interface SQLClientPool (Convenience)
- (NSString*) buildQuery: (NSString*)stmt,...;
- (NSString*) buildQuery: (NSString*)stmt with: (NSDictionary*)values;
- (NSMutableArray*) cacheCheckSimpleQuery: (NSString*)stmt;
- (NSMutableArray*) cache: (int)seconds
query: (NSString*)stmt,...;
- (NSMutableArray*) cache: (int)seconds

View file

@ -843,6 +843,17 @@
return result;
}
- (NSMutableArray*) cacheCheckSimpleQuery: (NSString*)stmt
{
NSMutableArray *result = [[c[0] cache] objectForKey: stmt];
if (result != nil)
{
result = [[result mutableCopy] autorelease];
}
return result;
}
- (NSMutableArray*) cache: (int)seconds
query: (NSString*)stmt,...
{