[BioSQL-l] namespace and find_by_unique_key
Marc Logghe
Marc.Logghe at devgen.com
Mon May 10 06:02:04 EDT 2004
Hi Hilmar,
> You can convince me that this is bad if the namespace is set
> but fails
> to be looked up (because it's not in the database). I guess
> my original
> intent was to be graceful with typing errors, but you have a
> case where
> this behavior clearly doesn't sound very helpful.
>
> Do you suggest to change this such that if the namespace is
> defined in
> the query sequence but is not in the database the unique key query
> should not find anything?
You think it is feasible to code a kind of comprimise ? Setting a 'strict' argument to 1 if you don't want cross namespace searches in case no/wrong namespace is passed. The default could be strict => 0, the original behaviour, being graceful with typos.
Just an idea.
Cheers,
Marc
More information about the BioSQL-l
mailing list