mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-21 02:41:07 +00:00
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:
parent
fad8cd4235
commit
e3376a47cc
3 changed files with 13 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -1997,6 +1997,12 @@ static void quoteString(NSMutableString *s)
|
|||
@end
|
||||
|
||||
@implementation SQLTransaction
|
||||
|
||||
- (unsigned) count
|
||||
{
|
||||
return _count;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
DESTROY(_db);
|
||||
|
|
Loading…
Reference in a new issue