Sunday, October 28, 2012

Execute Sql KDevelop Plugin

Lot of stuff happened at the Kate/KDevelop sprint in Vienna. (Thanks again to Joseph and KDE e.V. for sponsoring the sprint)

One small - but still useful - thing is the first public beta release of the kdev-sql plugin. It allows you to execute SQL queries from within KDevelop. Simply press Ctrl+E (or Run->Execute SQL) to execute the contents of the current file as SQL query.

The only use case this is trying to solve is debugging and performance testing of queries.






Database connections can be configured per project - all QtSql divers are supported.


Get the script here: kdev-sql-1.3.80.tar.bz2
(compatible with KDevelop 4.4)

In future other features like schema browsing and autocompletion could be implemented...

5 comments:

  1. how can I run this plugin?
    Kdevelop don't see him after compile and install kdev-sql-1.3.80.

    please help


    ReplyDelete
    Replies
    1. 1. Make sure you use a compatible version of kdevplatform (1.4).
      2. run kbuildsyscoca4 after installing

      Delete
    2. I use kdevplatform-1.4.0-1.fc17.x86_64 FEDORA 17

      Qt: 4.8.2
      KDE: 4.9.2
      KDevelop: 4.4.0

      I still don't see SQL plugin in kdevelop.


      Thx.


      Delete
    3. So you did run kbuildsyscoca4?

      Is it installed into a proper prefix?

      does it show up in Help -> Loaded Plugins?

      Delete
    4. oh, you can also ask for help on irc, #kdevelop on freenode.

      Delete