Database Project - ILanguageSupport

Sven Brauch svenbrauch at
Wed Feb 8 22:16:18 UTC 2012

What happened to "multiple languages in one file", btw? Wouldn't that
be very, very useful for SQL support (not to say, required)?


Am 8. Februar 2012 23:06 schrieb Niko Sams <niko.sams at>:
> You could also take a look at the sql plugin (quanta repository). It
> *very* basic
> but you actually can define database connections in the project properties.
> (other than that the only existing feature is executing the current
> file as sql query)
> Niko
> On Mon, Feb 6, 2012 at 22:42, Milian Wolff <mail at> wrote:
>> On Monday 06 February 2012 09:40:42 Miguel Tadeu wrote:
>>> Hi  Niko,
>>> In deed I'll need a connection. Here's what I have at the moment. I created
>>> a new project template and I'm starting a SQL language support.
>>> I'm still a little green on the kdevelop architecture so bare with me for a
>>> while and please guide a bit(saying where I'm wrong or point me to
>>> documentation)...
>>> For now, I need to add some options, specific for database management...but
>>> I think these options should only be available to the template I created.
>>> Is there a way to do this?
>>> Another question is, I'll need to create some environment vars. How can I
>>> access them from my language support class?
>>> As for c++ project(and other project types or templates), of course they
>>> need databases :) but not inside the c++ project itself, I guess. That
>>> would probably mess up kdevelop a bit. What I'm proposing is a separate
>>> database project to manage a database only. I think it will make it cleaner
>>> then giving database support for already existing templates.
>> OK, let me try to clarify then:
>> - project templates say *nothing* about your actual project. Imagine someone
>> imports an existing project into KDevelop that uses a database. There is no
>> way to associate that with a project template
>> - what you should do instead, is to add a  project configuration entry, see
>> e.g.:
>> kdevelop/projectbuilders/makebuilder/
>> -> makebuilderpreferences.{h,cpp}
>> -> makebuilderconfig.{kcfg,kcfgc}
>> -> kcm_kdev_makebuilder.desktop
>> There you could add the UI required to configure a database connection.
>> Cheers
>> --
>> Milian Wolff
>> mail at
>> --
>> KDevelop-devel mailing list
>> KDevelop-devel at
> --
> KDevelop-devel mailing list
> KDevelop-devel at

More information about the KDevelop-devel mailing list