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.
Please sign in to leave a comment.
The following is not an API, but will work for some time:
DbImplUtil#getMaybeLocalDataSource(DasDataSource)
LocalDataSource#getUsername
i can't find DbImplUtil class .