Author: rfm
Date: Sun Apr 12 11:50:50 2015
New Revision: 38453
URL: http://svn.gna.org/viewcvs/gnustep?rev=38453&view=rev
Log:
expose method
Modified:
libs/sqlclient/trunk/ChangeLog
libs/sqlclient/trunk/SQLClient.h
libs/sqlclient/trunk/SQLClient.m
Modified: libs/sqlclient/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/ChangeLog?rev=38453&r1=38452&r2=38453&view=diff
==============================================================================
--- libs/sqlclient/trunk/ChangeLog (original)
+++ libs/sqlclient/trunk/ChangeLog Sun Apr 12 11:50:50 2015
@@ -1,3 +1,10 @@
+2015-04-12 Richard Frith-Macdonald <[email protected]>
+
+ * SQLClient.h:
+ * SQLClient.m:
+ Expose method to add statement for insertion of data objects to
+ transaction.
+
2015-04-09 Richard Frith-Macdonald <[email protected]>
* SQLClient.h: Add array quoting method for pool. Add pool ivar.
Modified: libs/sqlclient/trunk/SQLClient.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClient.h?rev=38453&r1=38452&r2=38453&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClient.h (original)
+++ libs/sqlclient/trunk/SQLClient.h Sun Apr 12 11:50:50 2015
@@ -1674,6 +1674,10 @@
*/
- (void) add: (NSString*)stmt with: (NSDictionary*)values;
+/** Adds a prepared statement.
+ */
+- (void) addPrepared: (NSArray*)statement;
+
/**
* Appends a copy of the other transaction to the receiver.<br />
* This provides a convenient way of merging transactions which have been
Modified: libs/sqlclient/trunk/SQLClient.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClient.m?rev=38453&r1=38452&r2=38453&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClient.m (original)
+++ libs/sqlclient/trunk/SQLClient.m Sun Apr 12 11:50:50 2015
@@ -3006,7 +3006,7 @@
}
}
-- (void) _addPrepared: (NSArray*)statement
+- (void) addPrepared: (NSArray*)statement
{
[_info addObject: statement];
_count++;
@@ -3405,7 +3405,7 @@
wrapper = [_db transaction];
}
[wrapper reset];
- [wrapper _addPrepared: o];
+ [wrapper addPrepared: o];
[wrapper execute];
executed++;
success = YES;
@@ -3414,7 +3414,7 @@
{
if (failures != nil)
{
- [failures _addPrepared: o];
+ [failures addPrepared: o];
}
if (log == YES || [_db debugging] > 0)
{
@@ -3453,7 +3453,7 @@
if ([o isKindOfClass: NSArrayClass] == YES)
{
- [failures _addPrepared: o];
+ [failures addPrepared: o];
}
else
{
@@ -3553,7 +3553,7 @@
{
SQLTransaction *t = [[self db] transaction];
- [t _addPrepared: o];
+ [t addPrepared: o];
return t;
}
else
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs