Re: libgdamm-4.0 backend detection at run time



On Wed, 2009-12-16 at 01:09 +1000, Mr.Cashe wrote:
> Hi, All!
> Tell me, please, can I get a list of available backends, such 
> as "SQlite", "MySQL" (provider_name) at run time? Unfortunally, I didn't find 
> any function to do it. Any suggestions?

You can use Gnome::Gda::Config::list_providers(). It provides a
DataModel, which is an awful way to provide a list, but it works:
http://git.gnome.org/cgit/glom/tree/glom/libglom/connectionpool_backends/postgres.cc#n443


-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]