Page 1 of 1
writing a DB connector plugin
Posted: 23 Feb 2011 21:24
by equinox
In this link
http://wiki.gephi.org/index.php/Plugins_portal, there is a page to create a DB connector, however it is empty.
Can any one give me any details on how to proceed in doing this? I have access to a JDBC of a DB and I would like to use this to write a plugin, pulling out nodes, etc
Re: writing a DB connector plugin
Posted: 24 Feb 2011 03:33
by Yestin
I didn't add a new jdbc driver before, but I think the most related module to add a new jdbc driver is DBDriver. You can get the source code and find it not very hard.
First create a new module and add the dependency of DBDriver
http://wiki.gephi.org/index.php/Plugin_ ... 5_minutes). Then you should add the new jdbc driver library to your module. After that, create a new class XXXSQLDriver implements SQLDriver, which is similiar to classes in DBDriver Module. I think that's enough.
Re: writing a DB connector plugin
Posted: 25 Feb 2011 22:20
by equinox
what do you mean by "Then you should add the new jdbc driver library to your module."