intellij-idea - Default SQL Server Session for Intellij
问题描述
When opening a .bdy(/sql/vew/..)-File in IntelliJ, it always greets me with semantic errors for almost every line. That is because it needs a dbsession to check the references against. DataGrip behaves identical.
For reference:
Can I somehow state a default here per file/dir/proj/global?
解决方案
It's in File | Settings | Languages & Frameworks | SQL Resolution Scopes, here you can specify global Project Mapping to data source/database/schema, or define mapping for any directory/file. in DataGrip setting path will be as follow File | Settings | Database | SQL Resolution Scopes.
推荐阅读
- html - 如何使用 vba 从 html 中提取属性
- git - 在 Git 中返回顺序分支、修改和组合
- sql-server - 从具有给定属性的xml中提取值,然后获取另一个属性的值
- java - 如何创建一个表格来计算文本中每个单词的数量?
- java - Swagger 中的 Spring REST 可分页/查询参数
- javascript - 在等待 Promise 完成时如何进行?
- c - 如何从一个非常简单的例子中使用 Makefile
- python - 如何在 Python 中遍历高阶范围?
- php - 当用户点击我的 Facebook 广告时如何获取一些唯一的用户 ID
- mysql - 谷歌云SQL插入性能慢