Skip to content

Commit 50dfcc3

Browse files
cleanups; add backticks for code strings
1 parent 2d9102a commit 50dfcc3

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

docs/guides/tablediff.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,24 +140,30 @@ When diffing multiple models, SQLMesh will:
140140

141141
The `--select-model` option supports a powerful selection syntax that lets you choose models using patterns, tags, dependencies and git status. For complete details, see the [model selection guide](./model_selection.md).
142142

143-
> Note: models will only be data diffed if there's a breaking change that impacts them.
143+
> Note: Models will only be data diffed if there's a breaking change that impacts them.
144144
145145
Here are some common patterns you can use:
146-
> Note: Surround your selection pattern in single or double quotes. Ex: '*', "sqlmesh_example.*"
146+
147+
> Note: Surround your selection pattern in single or double quotes. Ex: `'*'`, `"sqlmesh_example.*"`
148+
147149
### Wildcard Patterns
150+
148151
- `*` - All models in the project
149152
- `sqlmesh_example.*` - All models in the sqlmesh_example schema
150153

151154
### Upstream/Downstream Selection
155+
152156
- `+model_name` - Select the model and its upstream dependencies
153157
- `model_name+` - Select the model and its downstream dependencies
154158
- `+model_name+` - Select the model and both its upstream and downstream dependencies
155159

156160
### Tag-based Selection
161+
157162
- `tag:finance` - All models with the "finance" tag
158163
- `tag:reporting*` - All models with tags starting with "reporting"
159164

160165
### Git-based Selection
166+
161167
- `git:feature` - Select models whose files have changed compared to main branch, including:
162168
- Untracked files (new files not in git)
163169
- Uncommitted changes in working directory
@@ -168,12 +174,14 @@ Here are some common patterns you can use:
168174
> Note: Git-based selection excludes deleted files and respects your `.gitignore` settings.
169175
170176
### Logical Operators
177+
171178
You can combine multiple selectors using logical operators:
172179
- `&` (AND): Both conditions must be true
173180
- `|` (OR): Either condition must be true
174181
- `^` (NOT): Negates a condition
175182

176183
#### Complex Selection Examples
184+
177185
- `(tag:finance & ^tag:deprecated)` - Models with finance tag that don't have deprecated tag
178186
- `(+model_a | model_b+)` - Model A and its upstream deps OR model B and its downstream deps
179187
- `(tag:finance & git:main)` - Changed models that also have the finance tag

0 commit comments

Comments
 (0)