How to get sql comment for table and column
Answered
I use com.intellij.sql.SqlDocumentationProvider#findRelatedDbElements(com.intellij.psi.PsiElement, boolean) to get the sql table and column comment in 2020.1, but this method not found in new version.
Please sign in to leave a comment.
Hi,
This method has been moved to
com.intellij.sql.SqlNavigationUtils
class.Thinks you.
Use `try Class.forName` to be compatible with old and new versions.
https://github.com/LinWanCen/show-comment/blob/82d0ade99b41c019b891babda13e7694d602db46/src/main/java/io/github/linwancen/plugin/show/lang/SqlLangDoc.java#L41