How can i get the username in datagrip? I have find it in dataSources.local.xml.

I am writing a plugin to create mybatis files.So i need to use the username in dataSources.local.xml.

find api like this:

DbDataSource parent = (DbDataSource) psiElement.getParent().getParent();

this api can get value like version,product name and so on.But i can't get username.

I find username in debug too.

Is there any way or api to get it? very thanks.

0
2 comments

The following is not an API, but will work for some time:

DbImplUtil#getMaybeLocalDataSource(DasDataSource)
LocalDataSource#getUsername

1

i can't find DbImplUtil class .

#IU-192.6262.58
0

Please sign in to leave a comment.