Add -count for transaction

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@21752 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-09-28 06:35:03 +00:00
parent fad8cd4235
commit e3376a47cc
3 changed files with 13 additions and 0 deletions

View file

@ -1,6 +1,8 @@
2005-09-28 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.m: boost performance of quoting a little.
Provide -count method for transactions.
2005-09-26 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -1195,6 +1195,11 @@ extern unsigned SQLClientTimeTick();
*/
- (void) append: (SQLTransaction*)other;
/**
* Returns the number of statements in this transaction.
*/
- (unsigned) count;
/**
* Returns the database client with which this instance operates.<br />
* This client is retained by the transaction.

View file

@ -1997,6 +1997,12 @@ static void quoteString(NSMutableString *s)
@end
@implementation SQLTransaction
- (unsigned) count
{
return _count;
}
- (void) dealloc
{
DESTROY(_db);