Not able to use com.intellij.database in a plugin

I am trying to develop a plugin which would generate some code using a Table from the database tools window.
Somewhat similar to https://github.com/yseasony/idea-sql-generator-tool
But the DatabaseView class in getting resolved. I tried using 

<depends optional="true">com.intellij.database</depends>

in plugin.xml similar to the plugin mentioned>but that too cannot be resolved. How do I fix this? 

0
5 comments

You need to add the following to IntelliJ SDK:

/plugins/DatabaseSupport/lib/database-openapi.jar

And optionally its sources:

/lib/src/src_database-openapi.zip
0

Hi,

Is database-openapi.jar available in Maven repo? What's the link?

I'm developing a plugin in IntelliJ v2021.1. I need com.intellij.database.psi.DataSourceManager class and package. Does this jar "database-openapi.jar" have this class?

Thanks,

 

0

Mcs Krishna, yes it does.

0

Mcs Krishna Were you able to use it in your plugin?

If so, can you tell us how?

0

Not useful, in fact. I'm not using this jar in my plugin.

1

Please sign in to leave a comment.