Author: thebeing
Date: Thu Jun 25 15:38:41 2015
New Revision: 38679

URL: http://svn.gna.org/viewcvs/gnustep?rev=38679&view=rev
Log:
Add an accessor method to SQLClient to allow getting the pool that owns the
connection.

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=38679&r1=38678&r2=38679&view=diff
==============================================================================
--- libs/sqlclient/trunk/ChangeLog      (original)
+++ libs/sqlclient/trunk/ChangeLog      Thu Jun 25 15:38:41 2015
@@ -1,3 +1,8 @@
+2015-06-25 Niels Grewe <[email protected]>
+
+       * SQLClient.[hm]: Add an accessor method to obtain the SQLClientPool
+         object owning a specific SQLClient.
+
 2015-06-25 Richard Frith-Macdonald  <[email protected]>
 
        * SQLClient.h: Add -name method for pools.

Modified: libs/sqlclient/trunk/SQLClient.h
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClient.h?rev=38679&r1=38678&r2=38679&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClient.h    (original)
+++ libs/sqlclient/trunk/SQLClient.h    Thu Jun 25 15:38:41 2015
@@ -1002,6 +1002,13 @@
  * Return the database user for this instance (or nil).
  */
 - (NSString*) user;
+
+
+/**
+ * Return the pool to which the receiver belongs, or nil if it is not part of a
+ * connection pool.
+ */
+- (SQLClientPool*) pool;
 @end
 
 /**

Modified: libs/sqlclient/trunk/SQLClient.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClient.m?rev=38679&r1=38678&r2=38679&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClient.m    (original)
+++ libs/sqlclient/trunk/SQLClient.m    Thu Jun 25 15:38:41 2015
@@ -1853,6 +1853,11 @@
 {
   NSIncrementExtraRefCount(self);
   return self;
+}
+
+- (SQLClientPool*) pool
+{
+  return _pool;
 }
 
 - (void) rollback


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to