[Gambas-user] gb.db.mysql not in .project

Benoît Minisini gambas at ...1...
Tue Nov 24 18:59:24 CET 2009


> Ok, something weird.
> 
> My project uses mysql db from day one.
> 
> And today I wanted to uncheck gb.v4l because it doesn't work with v4l2,
> so i ditched it in favor of embedded mplayer, so I went to my project
> properties and noticed gb.db.mysql was not checked! Huh, it wasn't in my
> .project file either, but mysql was working, otherwise I couldn't even
> start my project.
> 
> Library=gb.qt
> Library=gb.form
> Library=gb.db
> Library=gb.db.form
> Library=gb.desktop
> Library=gb.form.dialog
> Library=gb.form.mdi
> Library=gb.net
> Library=gb.net.curl
> Library=gb.net.smtp
> Library=gb.qt.ext
> Library=gb.settings
> Library=gb.v4l
> Library=gb.xml
> Library=gb.xml.rpc
> 
> I checked it, and it appeared in my .project file too.
> Unchecked it again and my project still runs without it...
> 
> Whats the idea behind this?
> Doesn't this generate dependency problems if you create a package?
> 

It will. But you may write a database program that does not care on the 
database backend (for example, the database manager). The gb.db component can 
automatically loads gb.db.* driver at first use, if they are present of 
course.

But if you are sure which gb.db.* driver you need, you can check it in the 
project property dialog, so that you have the dependency.

Regards,

-- 
Benoît Minisini




More information about the User mailing list