[PD] [psql] object hand-holding
matju at artengine.ca
Thu Dec 13 21:05:45 CET 2007
On Tue, 11 Dec 2007, Jamie Bullock wrote:
> I like this idea. What do you think about using an implicit
> receive-symbol, '$0-psql.1001', '$0-psql.1002' etc?
No, because if you don't have an explicit receive-symbol, then you can't
share database connections and logins in the way that you choose, unless
you force all sql objects to be connected directly to a database
> Would it be possible for psql to automatically discover the psql.conn's
> receive symbol by using pd_findbyclass(), and then reading a variable in
> the object struct?
What I'm saying is the other way around. You start with a user-specified
symbol and you use it to find the database connection object. The query
object doesn't know the database object until it looks up the symbol. I'm
really telling you to do it like [tabread]; what you are thinking about
now, is not like [tabread].
_ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
More information about the Pd-list