mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 02:41:07 +00:00
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:
parent
f707d5bc9c
commit
68048a3019
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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,...
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue