Ahhh ok...I think I got it. The magic is in SelmaConnectionPool >> #connect:
On Tue, Jul 9, 2013 at 11:50 AM, Mariano Martinez Peck < [email protected]> wrote: > Hi guys, > > There is something I don't understand. The idea > with GlorpOpenDBXDriverPoolingDriver is that it takes care of opening the > connections and have a pool, right? > > Now...I am at the glorp side...each time I want to do something I > instantiate a GlorpSession. Of course, I don't want to send #login to this > session because that's what the pool would do if necessary. So say I just > send a query with the session. I get a DNU because 'databaseDriver' is nil. > As you can see, databaseDriver is set in PharoDatabaseAccessor > >> loginIfError:. > of course, if I send #login or #loginIfError before doing the query the > pool "works"...but...I am opening a connection for each query. > > So I don't understand how this is supposed to work. How should I manage my > Glorp sessions with this pool? > > Thanks, > > -- > Mariano > http://marianopeck.wordpress.com > -- Mariano http://marianopeck.wordpress.com
