I could not find any way to hide this warning in Intellij:
No data sources are configured to run this SQL and provide advanced code assistance

What is the magic combination of settings to make this go poof?
There does not appear to be any setting that actually works. Instead it's actually pretty easy to create a "fake" sql source.
The fake connection will not cause issues and now the SQL will be parsed and that message goes .. poof !
I had this for a typescript project, the following comment disables the warning for the specific line
// noinspection SqlNoDataSourceInspection
Other languages may have different notations but SqlNoDataSourceInspection should be the name for all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With