mz-sql-navigation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNavigating Materialize SQL
导航Materialize SQL
The language server answers questions about an mz-deploy project's object
graph. Use the LSP tool for these instead of text search — grep finds strings that look
like an object name, the language server finds the object.
mz-deploymz-deployWhat to use it for
适用场景
- Go to definition — resolve where a referenced view, table, source, or index is defined, including across schemas.
- Hover — inspect an object's columns and their types without opening its definition.
- Document symbols — list the objects a single file defines.
.sql - Workspace symbols — locate an object by name when you don't know its file.
Before changing an object, use these to find what depends on it. In Materialize a view's
definition constrains everything downstream of it, so an edit that type-checks in
isolation can still break dependents.
- 跳转定义——解析被引用的视图、表、源或索引的定义位置,包括跨模式的引用。
- 悬停查看——无需打开对象定义,即可查看对象的列及其类型。
- 文档符号——列出单个文件中定义的所有对象。
.sql - 工作区符号——当不知道对象所在文件时,通过名称定位对象。
在修改对象之前,请使用这些功能查找依赖该对象的内容。在Materialize中,视图的定义会约束其下游的所有内容,因此即使某个编辑在孤立环境中通过类型检查,仍可能破坏依赖它的对象。
Diagnostics
诊断功能
Parse errors surface automatically after each edit. Treat them as authoritative for
syntax; they come from the same parser uses to build the project.
mz-deploy每次编辑后会自动显示解析错误。这些错误是语法的权威参考,因为它们来自用于构建项目的同一解析器。
mz-deployRequirements
要求
mz-deployPATHwhich mz-deployproject.tomlmz-deployPATHwhich mz-deployproject.toml