On 2/13/07, Graham Barr <[EMAIL PROTECTED]> wrote: > This could be done by adding a column_exists method to RDBO which would > only return true if the named column had been loaded from the DB or set > by calling the accessor method. And have ->load use column_exists instead > of defined when passed a flag,for example ->load(explicit =>1) (or some > better name)
I think a column_value_was_set() utility function is reasonable, but I don't want to (further) complicate and burden the default load() method for the sake of this quite esoteric (and, truthfully, almost entirely MySQL- specific) case. >> and i don't like the 'key' parameter. its a semantic thing. >> 'using_key' or 'on_key' would be much better for me personally. key >> seems too generic -- even in context. > > +1 My other choice was "use_key". I guess "using_key" reads better, but I feel like "use" fits a bit better with the imperative tone of the existing params. OTOH, "with" is more like "using". Hmm... -John ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object