File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ from example_app.models import *
73
73
74
74
### Include or Exclude tables
75
75
76
- After importing the models, it is possible to select a subset of those models by using the ` --exlude -tables ` and ` --include-tables ` options.
76
+ After importing the models, it is possible to select a subset of those models by using the ` --exclude -tables ` and ` --include-tables ` options.
77
77
These are mutually exclusive options, the user can only provide inclusions or exclusions:
78
78
79
79
``` bash
@@ -91,6 +91,14 @@ paracelsus graph example_app.models.base:Base \
91
91
--include-tables " posts"
92
92
```
93
93
94
+ You can also use regular expressions in the ` include-tables ` and ` exclude-tables ` options.
95
+
96
+ ``` bash
97
+ paracelsus graph example_app.models.base:Base \
98
+ --import-module " example_app.models.*" \
99
+ --exclude-tables " ^com.*"
100
+ ```
101
+
94
102
### Specify Column Sort Order
95
103
96
104
By default Paracelsus will sort the columns in all models such as primary keys are first, foreign keys are next and all other
Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ def graph(
57
57
] = [],
58
58
exclude_tables : Annotated [
59
59
List [str ],
60
- typer .Option (help = "List of tables that are excluded from the graph" ),
60
+ typer .Option (help = "List of tables or regular expression patterns for tables that are excluded from the graph" ),
61
61
] = [],
62
62
include_tables : Annotated [
63
63
List [str ],
64
- typer .Option (help = "List of tables that are included in the graph" ),
64
+ typer .Option (help = "List of tables or regular expression patterns for tables that are included in the graph" ),
65
65
] = [],
66
66
python_dir : Annotated [
67
67
List [Path ],
You can’t perform that action at this time.
0 commit comments