[R-sig-DB] default driver and connection

Seth Falcon @|@|con @end|ng |rom |hcrc@org
Wed Jul 18 23:12:40 CEST 2007


"Gabor Grothendieck" <ggrothendieck using gmail.com> writes:
> Thanks.  Is there also a way to discover whether SQLite or MySQL or
> neither has been loaded.  Note that they could be loaded but not have
> an open connection.
>
> Thus, I would like to do this or similar processing:
>
> If only one of MySQL or SQLite is loaded then use that one.
> If neither is loaded use SQLite.

What if both are loaded?

I don't think there is a way currently to determine if SQLite() has
yet been called.  However, if RSQLite is not loaded, it certainly has
not been called ;-)  So perhaps you can get by with checking whether
the package is loaded?

Such a feature could be added, but I'm not convinced it would actually
be useful for anything.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org




More information about the R-sig-DB mailing list