Is it possible that multiple database sources (e.g, sql server and pgsql) inline sql grammar check can be applied on the same .cs fle?

ATM, on a certain .cs file, if I chose sql server as db source, then the inline pgsql query will be highlighted error in red, and vice versa, which is pretty annoying. 

I am not sure if it's just because I have no idea how to config or the Rider is lack of such feature.

Thanks

0
1 comment

Hello,

Thank you for contacting Rider support.

Unfortunately, there is no way to specify several SQL dialects per file. The lowest dialect level that can be specified is a file-level (.cs).

You might want to upvote this related feature request: RIDER-76191 SQL dialect injection in string literal

Apologies for the inconvenience. Have a nice day!

0

Please sign in to leave a comment.