I create a plugin that should automatically manage one data source configured by changing configuration.
I was able to create that data source with the following code:
LocalDataSource dataSource = LocalDataSource.fromDriver(driver, connectionUrl, false);
To update the configuration of the data source I remove it and add a newly configured instance.
Sadly the auto completion for table names and fields is only availabel after opening the Database panel, selecting the options of the data source and clicking refersh.
I didn't find a way to trigger this refresh on the data source, or on the localDataSourceManager.
Is there a way to automatically trigger this update after adding the data source? Or is there even a better way to provide an automatically configured data source, that might update from time to time?
Is SchemaControl.AUTOMATIC the correct setting if I would like IntelliJ to index all databaseses of that server? Or is it even related to that. It doesn't look like.
Thanks in advance!